math.ceil
This function returns the least integer value greater than or equal to input
Syntax
math.ceil(inputNumber)
Arguments
Argument |
Type |
Description |
---|---|---|
inputNumber |
number |
The input number |
Returns
Type |
Description |
---|---|
number |
The ceil value of the input number |
Examples
The function math.ceil(1.49)
returns 2
.