mirror of
https://github.com/QB64Official/qb64.git
synced 2024-09-16 05:03:52 +00:00
LINE INPUT will now use the faster method if passed a file handle that has been opened FOR BINARY. As such, the _BLINEINPUT command has been removed. qb64.bas now takes advantage of this for reading from '$include files, at least in Include Manager 1. Some tweaking of internal/source/main.txt was required to get things into a sane state, so I'm holing off changing the compiler any further so the auto-builder can make sure everything's smoothed over. Note: Everything should still compile as normal; I'm just being overcautious.
33 lines
No EOL
765 B
Text
33 lines
No EOL
765 B
Text
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 "bankers rounding".
|
|
* 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& = {{Cl|CLNG}}(2345678.51)
|
|
{{Cl|PRINT}}
|
|
{{CodeEnd}}
|
|
|
|
{{OutputStart}}
|
|
2345679
|
|
{{OutputEnd}}
|
|
|
|
|
|
|
|
{{PageSeeAlso}}
|
|
*{{KW|CINT}}, {{KW|INT}}, {{KW|CSNG}}, {{KW|CDBL}}, {{KW|_ROUND}}
|
|
|
|
|
|
|
|
{{PageNavigation}} |