FUNCTION REFERENCE

floor

Round toward negative infinity.

Round toward negative infinity.

Syntax

floor(X)

Rounds each element down to an integer.

Example

floor(-1.5)   % -2

Differences from MATLAB: Real and complex double 2-D arrays. Complex results with zero imaginary parts are real.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.