floor

Purpose

Round towards negative infinity.

Synopsis

Y = floor(X)

Description

floor(X) rounds the elements of X to the nearest integers less than or equal to X.

Examples

X  =  [-1.9  -0.2  3.4  5.6  7.0]
floor(X)  =  [-2  -1  3  5  7]

See Also

ceil, fix, round

(c) Copyright 1994 by The MathWorks, Inc.