Commands by Category:
Index:
Round down toward \(-∞\).
floor
x (NxK matrix or N-dimensional array) – The values to be rounded down.
x_floor (NxK matrix or N-dimensional array) – Contains the elements of x rounded down to the nearest integer.
x = { -2.6 3.75, 2.79 -0.27 }; print floor(x);
will return:
-3 3 2 -1
See also
Functions ceil(), round(), trunc()
ceil()
round()
trunc()
previous
fix
next
fmod