fix

fix(X) rounds each element of X towards zero.

Examples

> fix(pi)#

 3
> fix([0.9999 1.0001])#

            0            1

See also

floor | round