Type Function Library math.* Return value Number Revision Current Public Release (2018.3326) Keywords floor See also math.ceil()
math.round()
Returns the integer smaller than or equal to x
.
print ( math.floor (0.5) ) ---> 0 print ( math.floor (-0.5) ) ---> -1 |