There is no build-in math.round() function in Lua, but you can do the following: print(math.floor(a+0.5)) .
確定! 回上一頁