Int
int
returns the integer part of a number.
int(NUMERIC_EXPR)
NUMERIC_EXPR
is an expression returning a numeric value. FRAC_PI=pi-int(pi) :# returns 0.14159265358...X = int(-pi) :# X = -4Y = int(-5) :# Y = -5
int(X)
returns:
The type of result is Integer or Decimal depending whether the result is in the [ -2^31, 2^31-1 ] range.
Error code | Description |
---|---|
10 | The argument is not numeric. |