round: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (corrected description)
mNo edit summary
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Rounds up or down to the closest integer of x.  |= Description
| Rounds up or down to the closest integer.  |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''round''' x |= Syntax
| [[Boolean]] <nowiki>=</nowiki> '''round''' [[Boolean]] <nowiki>=</nowiki>  |= Syntax
 
|p1= x: [[Number]] |= Parameter 1
 
| [[Integer]] |= Return value
| [[Integer]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________
| x1 =<pre>round 5.25, result is 5</pre> | = Example 1
| x1 =<pre>_val= round 5.25, result is 5</pre> | = Example 1
| x2 =<pre>round 5.55, result is 6</pre> | = Example 1
| x2 =<pre>_val= round 5.55, result is 6</pre> | = Example 2
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 18:05, 29 August 2007

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

Description

Description:
Rounds up or down to the closest integer.
Groups:
Uncategorised

Syntax

Syntax:
Boolean = round Boolean =
Return Value:
Integer

Examples

Example 1:
_val= round 5.25, result is 5
Example 2:
_val= round 5.55, result is 6

Additional Information

See also:
floor

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section