标签:math 测试 integer ceil int lua ima print mat
math.floor(num)
math.ceil(num)
math.modf(num)
num = 12.4
print(math.floor(num)) 12
print(math.ceil(num)) 13
integer, decimal = math.modf(num)
print(integer) 12
print(decimal) 0.4
标签:math 测试 integer ceil int lua ima print mat
原文地址:https://www.cnblogs.com/zhugaopeng/p/10153059.html