Futurebasic/Language/Reference/int

From Wikibooks, open books for an open world
Jump to navigation Jump to search

INT[edit | edit source]

Function[edit | edit source]

Appearance Standard Console

Syntax[edit | edit source]

nearestInteger& = INT(expr#)

Description[edit | edit source]

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 | edit source]

FIX, FRAC