主页
Python
Python math.ldexp() 方法
demo_ref_math_ldexp
运行 ❯
×
更改方向
保存代码
更改主题
# Import math Library import math # Return value of x * (2**i) print(math.ldexp(9, 3)) print(math.ldexp(-5, 2)) print(math.ldexp(15, 2))
72.0
-20.0
60.0