
ceil - converting to an integer

Calling sequence:

ceil(expr)

Parameter:

expr   --  expression

Overloading:

all

Summary:

ceil returns the smallest integer, larger or equal to the number given by
expr. If expr is a complex number then an error is returned. if the argument
cannot be evaluated to a number, ceil returns the unevaluated function call.

If the exponents of real numbers become too large then a call of ceil can
lead to a loss of accuracy which is not recognized as an error.  ceil is a
converting function of the kernel.

>>  ceil(1.2);

     2

>>  ceil(-8/3);

      -2

>>  ceil(x);

      ceil(x)

See also:  round , frac, trunc , floor

