floor
取不大于A且距离A最近的整数
Round toward negative infinity
Syntax
B = floor(A)
Description
B = floor(A) rounds theelements of A to the nearest integers less thanor equal to A. For complex A,the imaginary and real parts are rounded independently.
Examples
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