round: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
(add. ArmA2 classification)
Line 35: Line 35:
[[Category:Scripting Commands ArmA|ROUND]]
[[Category:Scripting Commands ArmA|ROUND]]
[[Category:Command_Group:_Math|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Math|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]

Revision as of 17:14, 3 June 2009

-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:
Number = round x
Parameters:
x: Number
Return Value:
Number

Examples

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

Additional Information

See also:
Math Commands : 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