Documentation Center

  • Trials
  • Product Updates

floor

Round toward negative infinity

Syntax

B = floor(A)

Description

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.

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 

See Also

| |

Was this topic helpful?