math.ceil
This function returns the least integer value greater than or equal to the 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.