Navigation

Operators and Keywords

Function List:

C++ API

: ceil (x)

Return the smallest integer not less than x.

This is equivalent to rounding towards positive infinity.

If x is complex, return ceil (real (x)) + ceil (imag (x)) * I.

ceil ([-2.7, 2.7])
   ⇒ -2    3

See also: floor, round, fix.

Package: octave