Futurebasic/Language/Reference/int

Function

edit

Appearance Standard Console

Syntax

edit

nearestInteger& = INT(expr#)

Description

edit

Returns the value of expr# rounded to the nearest integer. Note: INT returns a "long integer" value, which means that expr# should be within the range -2147483648 through +2147483547. To obtain the integer part of numbers which are outside this range, use the FIX function. (Note however that FIX truncates the fraction part rather than rounding to the nearest integer. In general, FIX and INT don't return the same values.)

See Also

edit

FIX, FRAC