abs: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (Reverted edits by Heecf..... (talk) to last revision by Str) |
||
Line 1: | Line 1: | ||
{{Command|= Comments | |||
____________________________________________________________________________________________ | |||
| ofp |= Game name | |||
|1.00|= Game version | |||
|arg= local |= Arguments in MP | |||
____________________________________________________________________________________________ | |||
| Absolute value of a real number |= Description | |||
____________________________________________________________________________________________ | |||
| [[Number]] <nowiki>=</nowiki> '''abs''' x |= Syntax | |||
|p1= x: [[Number]] |= Parameter 1 | |||
| [[Number]] |= Return value | |||
____________________________________________________________________________________________ | |||
|x1= <pre>_x = abs -3</pre> | |||
returns 3 |= Example 1 | |||
____________________________________________________________________________________________ | |||
| |= See also | |||
}} | |||
<h3 style="display:none">Notes</h3> | |||
<dl class="command_description"> | |||
<!-- Note Section BEGIN --> | |||
<!-- Note Section END --> | |||
</dl> | |||
<h3 style="display:none">Bottom Section</h3> | |||
[[Category:Scripting Commands|ABS]] | |||
[[Category:Scripting Commands OFP 1.96|ABS]] | |||
[[Category:Scripting Commands OFP 1.46|ABS]] | |||
[[Category:Scripting Commands ArmA|ABS]] | |||
[[Category:Command_Group:_Math|{{uc:{{PAGENAME}}}}]] | |||
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]] | |||
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] | |||
Revision as of 00:24, 21 August 2012
Description
- Description:
- Absolute value of a real number
- Groups:
- Uncategorised
Syntax
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
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.00
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands OFP 1.96
- Scripting Commands OFP 1.46
- Scripting Commands ArmA
- Command Group: Math
- Scripting Commands ArmA2
- Scripting Commands Take On Helicopters