From QB64 Wiki
Revision as of 06:10, 28 August 2009 by (talk)
Jump to navigation Jump to search

The CLNG function rounds decimal point numbers up or down to the nearest Long integer value. Values greater than .5 are rounded up; .5 or lower are rounded down just like "bankers rounding".

Useage: a% = CLNG(DecimalPointNumber#)

Example: a% = CLNG(2345678.51)

Results: a% = 2345679

See also: CINT, INT