fix
Rounds X down to zero.
Syntax
fix(X)
Inputs
- X
- Integer to be truncated.
Outputs
- R
- Resulting integer.
Examples
Simple fix example:
fix(2.2)
R = 2
Matrix fix example:
fix([1.62,7.9;8,2.-9.1;1.711,7.8])
R = [ 1 7 ; 8 -7 ; 1 7 ]
Complex matrix fix example:
fix([2.1i-8.9,-2.7i+2.1,3.76,1.8-3i])
R = [ -8 + 2i, 2-2i, 3, 1-3i]