CLNG: Difference between revisions
Jump to navigation
Jump to search
Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link
(Created page with "The CLNG function rounds decimal point numbers up or down to the nearest LONG integer value. {{PageSyntax}} : {{Parameter|value&}} = CLNG({{Parameter|expression}}) {{Parameters}} * {{Parameter|expression}} is any TYPE of literal or variable numerical value or mathematical calculation. {{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. * CLNG ca...") |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
The [[CLNG]] function rounds decimal point numbers up or down to the nearest [[LONG]] integer value. | The [[CLNG]] function rounds decimal point numbers up or down to the nearest [[LONG]] integer value. | ||
Line 6: | Line 6: | ||
{{ | {{PageParameters}} | ||
* {{Parameter|expression}} is any [[TYPE]] of literal or variable numerical value or mathematical calculation. | * {{Parameter|expression}} is any [[TYPE]] of literal or variable numerical value or mathematical calculation. | ||
Line 12: | Line 12: | ||
{{PageDescription}} | {{PageDescription}} | ||
* Used when integer values exceed 32767 or are less than -32768. | * Used when integer values exceed 32767 or are less than -32768. | ||
* Values greater than .5 are rounded up; .5 or lower are rounded down. | * Values greater than .5 are rounded up; .5 or lower are rounded down. | ||
* CLNG can return normal [[INTEGER]] values under 32768 too. | * CLNG can return normal [[INTEGER]] values under 32768 too. | ||
* Use it when a number could exceed normal [[INTEGER]] number limits. | * Use it when a number could exceed normal [[INTEGER]] number limits. | ||
Line 24: | Line 24: | ||
{{OutputStart}} | {{OutputStart}} | ||
2345679 | 2345679 | ||
{{OutputEnd}} | {{OutputEnd}} | ||
{{PageSeeAlso}} | {{PageSeeAlso}} | ||
* [[CINT]], [[INT]] | * [[CINT]], [[INT]] | ||
* [[CSNG]], [[CDBL]] | * [[CSNG]], [[CDBL]] | ||
* [[_ROUND]] | * [[_ROUND]] |
Latest revision as of 01:45, 24 January 2023
The CLNG function rounds decimal point numbers up or down to the nearest LONG integer value.
Syntax
- value& = CLNG(expression)
Parameters
- expression is any TYPE of literal or variable numerical value or mathematical calculation.
Description
- 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.
Examples
a& = CLNG(2345678.51) PRINT |
2345679 |
See also