Qu

fix

Builtin index · Core maths

fix(x)

Input: x · Output: no output

What it is

Rounds toward zero (fix(-2.7) is -2, fix(2.7) is 2); the MATLAB name for trunc. Elementwise on a scalar, Vec or Mat.

Overloads

One call shape — this function is not overloaded.

CodeInputOutputDescription
fix(x)
x scalar, Vec, or Matnot documented yet
not documented yetRounds toward zero (fix(-2.7) is -2, fix(2.7) is 2); the MATLAB name for trunc. Elementwise on a scalar, Vec or Mat.

Examples

No documentation example calls this form yet. The Core maths chapter is where one belongs.