round: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (reset arma ver)
(added example)
Line 9: Line 9:
____________________________________________________________________________________________
____________________________________________________________________________________________


| The round value of x.  |= Description
| The integer value of x.  |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 16: Line 16:
|p1= x: [[Number]] |= Parameter 1
|p1= x: [[Number]] |= Parameter 1


| [[Number]] |= Return value
| [[Integer]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________
| x1 =<code>'''round''' -5.25</code>
| x1 =<pre>round 5.25, result is 5</pre> | = Example 1
Result is -5 | = Example 1
| x2 =<pre>round -5.25, result is -5</pre> | = Example 1
| |= See also
____________________________________________________________________________________________
 
|[[floor]]|= See also


}}
}}

Revision as of 23:23, 10 December 2006


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

Description

Description:
The integer value of x.
Groups:
Uncategorised

Syntax

Syntax:
round x
Parameters:
x: Number
Return Value:
Integer

Examples

Example 1:
round 5.25, result is 5
Example 2:
round -5.25, result is -5

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