ceiling
Returns the smallest integer that is not less than the argument.
integer ceiling
(
num number);
Description
This function returns the smallest (closest to negative infinity) number that is not less than the argument and that is an integer.
In other words, it "rounds up" the given value.
Parameters
num –
The value to be "rounded up"
Examples
The following expressions are true:
ceiling(2.5) = 3
ceiling(2) = 2
ceiling(-2.5) = -2
ceiling(-2) = -2