Name
ceiling — Returns the smallest integer that is not less than the argument.
Synopsis
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"
Return Types
Examples
Example 24.567.
The following expressions are true:
ceiling(2.5) = 3 ceiling(2) = 2 ceiling(-2.5) = -2 ceiling(-2) = -2