[back] [prev] [next] [index] [root]
Ceil
Returns the minimal integer greater than or equal to a number.
Syntax:
y := Ceil(x);
See also: Trunc, Round, Floor
Description:
Given an x in Z, Q or R the function returns
\min{ k\inZ : k >= x}.
The computation is done in the current precision of the
real (complex) field.
Example:
kash> Ceil(3);
3
kash> Ceil(-3);
-3
kash> Ceil(3.5);
4
kash> Ceil(-3.5);
> -3
<- back[back] [prev] [next] [index] [root]