abs: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 1: Line 1:
[[Category:Scripting Commands|ABS]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|ABS]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|ABS]]
 
[[Category:Scripting Commands ArmA|ABS]]
| ofp |= Game name


|1.00|= Game version


<h2 style="color:#000066">'''abs ''x'''''</h2>
|arg= local |= Arguments in MP
____________________________________________________________________________________________


| Absolute value of a real number |= Description
____________________________________________________________________________________________


'''Operand types:'''
| '''abs''' x |= Syntax


'''x:''' [[Number]]
|p1= x: [[Number]] |= Parameter 1


'''Type of returned value:'''
| [[Number]] |= Return value
____________________________________________________________________________________________
 
|x1= _x = abs -3 returns 3 |= Example 1
____________________________________________________________________________________________


[[Number]]
|  |= See also


'''Description:'''
}}


Absolute value of '''x'''.
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
</dl>


'''Example:'''
<h3 style="display:none">Bottom Section</h3>


_a = '''abs''' -3 ..........Result is 3
[[Category:Scripting Commands|ABS]]
[[Category:Scripting Commands OFP 1.96|ABS]]
[[Category:Scripting Commands OFP 1.46|ABS]]
[[Category:Scripting Commands ArmA|ABS]]

Revision as of 22:48, 1 August 2006

Hover & click on the images for description

Description

Description:
Absolute value of a real number
Groups:
Uncategorised

Syntax

Syntax:
abs x
Parameters:
x: Number
Return Value:
Number

Examples

Example 1:
_x = abs -3 returns 3

Additional Information

See also:
See also needed

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