456
INT( ) Function
Return Integer Portion
Format
INT(num[,ERR=stmtref])
Where:
num
Numeric expression whose integer portion is to be returned.
stmtref
Program line number or label to transfer control to.
Returns
Integer portion of numeric value.
Description
The INT( ) function returns the integer portion of the value specified. No rounding is
performed on the value. The fractional part of the value is truncated.
Examples
A=INT(3.23) ! yields A=3
A=INT(-5.6) ! yields A=-5
A=INT(.9999) ! yields A=0