math.floor
← math
型:function
code:Lua
math.floor(x)
table:
型 説明
#1 number
戻り値 number
$ \lfloor x \rfloor(床関数) すなわち、x以下の最大の整数を返す
Lua標準では四捨五入関数は提供されていない math.floor(x+0.5)とすること
関連項目
math.ceil