INT
(Function)

Obtains the maximum integer value possible from a designated value.

INT (<Expression>)

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.

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
|