Navigation: Language Reference > Functions > Arithmetic >
Y = floor(X);
Rounds X or the elements of X to the nearest integers less than or equal to X.
X
floor(X)
1
2.1
2
-2.6
-3
3.4
3
[1.1,-2.7;3.5,-4.1]
[1,-3;3,-5]
X and Y must have the same size.