主页
Python
Python math.frexp() 方法
demo_ref_math_frexp
运行 ❯
×
更改方向
保存代码
更改主题
#Import math Library import math #Return mantissa and exponent of a given number print(math.frexp(4)) print(math.frexp(-4)) print(math.frexp(7))
(0.5, 3)
(-0.5, 3)
(0.875, 3)