math.floor
This function returns the greatest integer value less than or equal to input.
Syntax
math.floor(inputNumber)
Arguments
Argument |
Type |
Description |
---|---|---|
inputNumber |
number |
The input number |
Returns
Type |
Description |
---|---|
number |
The floor value of the input number |
Examples
The function math.floor(1.51)
returns 1.