2017-10-10 14:55:21 +00:00
|
|
|
The [[CLNG]] function rounds decimal point numbers up or down to the nearest [[LONG]] integer value.
|
2015-08-02 12:12:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
{{PageSyntax}}
|
2017-10-10 14:55:21 +00:00
|
|
|
: {{Parameter|value&}} = [[CLNG]]({{Parameter|expression}})
|
2016-03-18 11:36:04 +00:00
|
|
|
|
|
|
|
|
2021-02-18 17:11:22 +00:00
|
|
|
{{PageParameters}}
|
2017-10-10 14:55:21 +00:00
|
|
|
* {{Parameter|expression}} is any [[TYPE]] of literal or variable numerical value or mathematical calculation.
|
2015-08-02 12:12:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
{{PageDescription}}
|
|
|
|
* Used when integer values exceed 32767 or are less than -32768.
|
2017-10-10 14:55:21 +00:00
|
|
|
* 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.
|
2015-08-02 12:12:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
{{PageExamples}}
|
|
|
|
{{CodeStart}}
|
|
|
|
a& = {{Cl|CLNG}}(2345678.51)
|
|
|
|
{{Cl|PRINT}}
|
|
|
|
{{CodeEnd}}
|
|
|
|
|
|
|
|
{{OutputStart}}
|
|
|
|
2345679
|
|
|
|
{{OutputEnd}}
|
|
|
|
|
|
|
|
|
|
|
|
{{PageSeeAlso}}
|
2016-03-18 11:36:04 +00:00
|
|
|
* [[CINT]], [[INT]]
|
|
|
|
* [[CSNG]], [[CDBL]]
|
|
|
|
* [[_ROUND]]
|
2015-08-02 12:12:44 +00:00
|
|
|
|
|
|
|
|
2019-04-15 01:15:33 +00:00
|
|
|
{{PageNavigation}}
|