ceil
ceil — rounds a real number up to the next integer.
Arguments
- number
Any number. Non-numbers are treated as zero.
Returns
The smallest integer that is greater than or equal to the
number.
Description
This function has the effect of rounding real numbers up to the next integer. Integers are unaffected.
Example
Gamma> ceil(1.1);
2
Gamma> ceil(-1.1);
-1
Gamma> ceil(4);
4
Gamma>