Darwin Help

Back to Index

ceil

Function ceil


Calling Sequence  ceil(x)
Parameters
NameTypeDescription

x numeric 
Return Type  integer
Synopsis ceil returns the smallest integer larger or equal to x. ceil(x) = -floor(-x) for all values of x.
Examples
> ceil(-2);
-2
> ceil(-1.99999);
-1
> ceil(2.000001);
3
See also floor,   iquo,   mod,   round,   trunc