Ceiling(
x
)
Returns the smallest whole number greater than or equal to x.
Example
=
Block
{
ShowCeiling
(1.01);
ShowCeiling
(1.99);
ShowCeiling
(
-
1.02);
ShowCeiling
(
-
2);
ShowCeiling
(5);
};
The ceiling of 1.01 is 2.
The ceiling of 1.99 is 2.
The ceiling of -1.02 is -1.
The ceiling of -2 is -2.
The ceiling of 5 is 5.