INT function

Purpose | Convert a numeric expression to an integral value.
Syntax | y = INT(numeric_expression)
Remarks | INT rounds numeric_expression to the largest integral value that is less than or equal to numeric_expression.
See also | CEIL, CINT, FIX, FRAC, ROUND
Example | DIM X AS SINGLE, Y AS LONG FOR X = -1.1 TO 2.1 STEP .5 Y = INT(X) NEXT X

Result

X Y

-1.1 -2

-0.6 -1

-0.1 -1

0.4 0

0.9 0

1.4 1

1.9 1