forked from Galleondragon/qb64
-
Notifications
You must be signed in to change notification settings - Fork 24
CLNG
Cory Smith edited this page Jun 9, 2022
·
3 revisions
The CLNG function rounds decimal point numbers up or down to the nearest LONG integer value.
value& = CLNG(expression)
- expression is any TYPE of literal or variable numerical value or mathematical calculation.
- Used when integer values exceed 32767 or are less than -32768.
- Values greater than .5 are rounded up; .5 or lower are rounded down.
- CLNG can return normal INTEGER values under 32768 too.
- Use it when a number could exceed normal INTEGER number limits.
a& = CLNG(2345678.51)
PRINT
2345679