Documentation Center |
Round toward negative infinity
B = floor(A)
B = floor(A) rounds the elements of A to the nearest integers less than or equal to A. For complex A, the imaginary and real parts are rounded independently.
a = [-1.9 -0.2 3.4 5.6 7.0 2.4+3.6i]; floor(a) ans = -2.0000 -1.0000 3.0000 5.0000 7.0000 2.0000 + 3.0000i