abs: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (template:command argument fix)
m (template:command argument fix)
Line 14: Line 14:
| [[Number]] <nowiki>=</nowiki> '''abs''' n |SYNTAX=
| [[Number]] <nowiki>=</nowiki> '''abs''' n |SYNTAX=


|p1= n: [[Number]] |= Parameter 1
|p1= n: [[Number]] |PARAMETER1=


| [[Number]] |RETURNVALUE=
| [[Number]] |RETURNVALUE=
Line 20: Line 20:
   
   
|x1= <code>_n = [[abs]] -3;</code>
|x1= <code>_n = [[abs]] -3;</code>
Returns 3 |= Example 1
Returns 3 |EXAMPLE1=
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 15:23, 7 April 2019

Hover & click on the images for description

Description

Description:
Absolute value of a real number
Groups:
Uncategorised

Syntax

Syntax:
Number = abs n
Parameters:
n: Number
Return Value:
Number

Examples

Example 1:
_n = abs -3; Returns 3

Additional Information

See also:
Math Commands

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