主页
Python
Python math.floor() 方法
demo_ref_math_floor
运行 ❯
×
更改方向
保存代码
更改主题
#Import math library import math # Round numbers down to the nearest integer print(math.floor(0.6)) print(math.floor(1.4)) print(math.floor(5.3)) print(math.floor(-5.3)) print(math.floor(22.6)) print(math.floor(10.0))
0
1
5
-6
22
10