Chapter 15 Functions
15-3
INT (Function) [Conforms to SLIM]
Function
Obtains the maximum integer value possible from a designated value.
Format
INT (<Expression>)
Explanation
This statement returns the maximum integer that does not exceed the value of
<Expression>.
If the value overflows, the maximum integer value with the same sign as
<Expression> is applied.
Example
DIM li1 As Integer
li1 = INT(123.456) '
Rounds down after the decimal point and assigns the value to
'integer variable li1.
'123.456->123
Comments to this Manuals