< Futurebasic < Language < Reference

INT

Function

Appearance Standard Console

Syntax

nearestInteger& = INT(expr#)

Description

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

FIX, FRAC

This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.