lua判断是否是小数

2025-05-10 04:00:46
推荐回答(1个)
回答1:

x=56.45454
if math.floor(x) print("小数")
else
print("整数")
end