FIX INDEX

FIX _ _ _ _ _ _ _ _ _ _ _ _ operator

syntax:

fix(<expression>)

The operator fix returns the integer part of its argument, if that argument has a numerical value. For positive numbers, this is equivalent to floor, and, for negative numbers, ceiling. For non-numeric arguments, the value is an expression in the original operator.

examples:


fix 3.4; 

  3 


floor 3.4; 

  3 


ceiling 3.4; 

  4 


fix(-5.2); 

  -5 


floor(-5.2); 

  -6 


ceiling(-5.2); 

  -5 


fix(a); 

  FIX(A)