INT

From QB64 Wiki
Revision as of 06:04, 28 August 2009 by 72.95.147.221 (talk) (Created page with 'The '''INT''' function rounds decimal point numbers down to the nearest integer value. ''Useage:'' a% = INT(DecimalPointNumber!) ''Example:'' a% = INT(1.51) ''Results:'' …')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The INT function rounds decimal point numbers down to the nearest integer value.


Useage: a% = INT(DecimalPointNumber!)


Example: a% = INT(1.51)

Results: a% = 1


Warning: Since CINT is used for integer values, the input values cannot exceed 32767!


See also: CLNG, CINT