C = floor(A)
| Parameter | Description |
|---|---|
| A | a variable |
| Parameter | Description |
|---|---|
| C | result of floor. |
floor returns an integer matrix made of nearest rounded down integers.
Sparse single and sparse single complex inputs are supported. Only stored nonzero entries are rounded and the result keeps the sparse storage and the input precision.
floor(pi)
S = sparse(single([1.2 0; -2.7 3.1]));
C = floor(S)
| Version | Description |
|---|---|
| 1.0.0 | initial version |
| 2.0.0 | sparse single and sparse single complex inputs supported. |