Answers for "lua math floor"

Lua
0

lua math floor

> = math.floor(0.5)
0
> = math.ceil(0.5)
1
> = math.floor(-0.5)
-1
> = math.ceil(-0.5)
-0
Posted by: Guest on October-20-2021

Browse Popular Code Answers by Language