Round the argument toward zero to the next integer value. |
||
Syntax |
f = Fix(m) |
|
Argument |
Name |
Description |
m |
A scalar, vector or matrix. |
|
Output |
Name |
Description |
f |
The integer result of rounding each entry toward zero. For complex numbers, it applies to the real and imaginary parts separately. |
|
Example |
Round the elements of a matrix toward zero. |
|
Syntax |
||
f = Fix([1.1, -2.3, -3.7, 4.8]) |
||
Result |
||
f = 1 -2 -3 4 |
||
See Also: |