Lua 中没有内置的math.round()函数,但是您可以执行以下操作: print(math.floor(a+0.5)) . ... 不幸 string.format() 根据所使用的Lua版本不同地舍入。
確定! 回上一頁