Difference between revisions of "ROUND"

From QB64 Wiki
Jump to navigation Jump to search
imported>Cyperium
imported>Cyperium
Line 1: Line 1:
The {{KW|_ROUND}} function rounds to the closest {{KW|INTEGER}}, {{KW|LONG}} or {{KW|_INTEGER64}} numerical value.
The {{KW|_ROUND}} function rounds to the closest {{KW|INTEGER}}, {{KW|LONG}} or {{KW|_INTEGER64}} numerical value.
{{PageSyntax}}
:<code>{{Parameter|variable}} = {{KW|ROUND}} ({{Parameter|variable}})</code>





Revision as of 00:05, 27 February 2010

The _ROUND function rounds to the closest INTEGER, LONG or _INTEGER64 numerical value.


Syntax

variable = ROUND (variable)


Description

  • Can be used when numerical values exceed the limits of CINT or CLNG.




Navigation:
Keyword Reference - Alphabetical
Keyword Reference - By Usage
Main Wiki Page