1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-26 07:25:53 +00:00
QB64-PE/internal/help/CLNG.txt
SMcNeill 6e01fc8dce Altered string compare routines (<,<=,>,>=) so they don't give false results with CHR$(0).
Added new _STRCMP and _STRICMP commands for quick string comparisons.
Cleaned up QB64 to finish removing the QUI (quick user insert) code and folders.
Altered UCASE and LCASE routines to be faster in some situations for us.
2014-09-22 08:19:03 -04:00

33 lines
765 B
Plaintext

The {{KW|CLNG}} function rounds decimal point numbers up or down to the nearest {{KW|LONG}} integer value.
{{PageSyntax}}
:{{Parameter|a%}} = {{KW|CLNG}}({{Parameter|DecimalPointNumber#}})
{{PageDescription}}
* Used when integer values exceed 32767 or are less than -32768.
* Values greater than .5 are rounded up; .5 or lower are rounded down like &quot;bankers rounding&quot;.
* CLNG can return normal {{KW|INTEGER}} values under 32768 also.
* Use it when a number could exceed normal {{KW|INTEGER}} number limits.
{{PageExamples}}
{{CodeStart}}
a&amp; = {{Cl|CLNG}}(2345678.51)
{{Cl|PRINT}}
{{CodeEnd}}
{{OutputStart}}
2345679
{{OutputEnd}}
{{PageSeeAlso}}
*{{KW|CINT}}, {{KW|INT}}, {{KW|CSNG}}, {{KW|CDBL}}, {{KW|_ROUND}}
{{PageNavigation}}