math.ceiling

Syntax

i := math.ceiling(n)

Get the next integer by rounding up. For example, both 2.001 and 2.999 are rounded to 3.0.

Returns:i - next integer
Arguments:n - number to round