abs: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (fixed formatting, removed arg local) |
||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
| ofp | |game1= ofp | ||
|1.00 | |version1 = 1.00 | ||
|gr1= Math | |gr1= Math | ||
| | |descr= Returns absolute (positive) value of a real number. | ||
| [[Number]] <nowiki>=</nowiki> '''abs''' n | |s1= [[Number]] <nowiki>=</nowiki> '''abs''' n | ||
|p1= n: [[Number]] | |p1= n: [[Number]] | ||
| [[Number]] | |r1= [[Number]] | ||
|x1= <code>_n = [[abs]] -3;</code> | |x1= <code>_n = [[abs]] -3; {{cc|Returns 3}}</code> | ||
|[[ | |seealso= [[+]] [[-]] | ||
}} | }} | ||
Revision as of 01:29, 5 February 2021
Description
- Description:
- Returns absolute (positive) value of a real number.
- Groups:
- Math
Syntax
Examples
- Example 1:
_n = abs -3; // Returns 3
Additional Information
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
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.00
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Command Group: Math
- Scripting Commands OFP 1.99
- Scripting Commands OFP 1.96
- Scripting Commands OFP 1.46
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 3: Scripting Commands
- Take On Helicopters: Scripting Commands