INT |
int returns the mathematical integer part of its argument.
int( exp_num )
|
Element |
Description |
Restrictions |
|
exp_num |
Numerical expression. |
-1e80< exp_num <1e80 |
Infbox num$(pi)-num$( int(pi)) : # displays 3, 14… and 3
X = int(-pi)
:# X = -4
Y = int(-5)
:# Y = -5
int(X) returns:
fix(X) if X is positive, null or integer,
fix(X)-1 if X is strictly negative and is not an integer.
The result is an Integer or Decimal type depending on whether or not the result belongs in the range [ -2^31, 2^31-1 ].
|
Error |
Description |
|
ERMODE (10) |
The argument is not a numerical type. |
FIX - AR2 - ARR - INTEGER - MOD
|
|