Fix
fix
truncates the decimals of a number.
fix(NUM_EXPR)
NUM_EXPR
is an expression that returns a numeric value. X = fix(pi)) : # X value is 3X = fix(-pi) : # X value is -3X = int(pi) : # X value is 3 X = int(-pi) : # X value is -4
fix
returns the value of 'X' without the decimals.
The result has an Integer or Decimal type depending whether the result is in the [-2^31, 2^31-1] range.
Error code | Description |
---|---|
10 | The argument is not numeric. |