Navigation

Operators and Keywords

Function List:

C++ API

: floor (x)

Return the largest integer not greater than x.

This is equivalent to rounding towards negative infinity. If x is complex, return floor (real (x)) + floor (imag (x)) * I.

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

See also: ceil, round, fix.

Package: octave