lua 中的math.floor函数是向下取整函数。math.floor(5.123) – 5math.floor(5.523) – 5用此特性实现四舍五入math.floor(5.123 + 0.5) – 5math.floor(5.523 + 0.5) – 6也 ...
確定! 回上一頁