David
Farruggio

MathGenie

fix

Round toward zero

Syntax and Description

fix(X) rounds each element of X to the nearest integer toward zero. For positive X, the behavior of fix is the same as floor. For negative X, the behavior of fix is the same as ceil.

Back to functions