abs: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?]]" to "{{GameCategory|tkoh|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| ofp |Game name=
| ofp |Game name=
Line 9: Line 8:


|gr1= Math |GROUP1=
|gr1= Math |GROUP1=
____________________________________________________________________________________________


| Absolute value of a real number |DESCRIPTION=
| Absolute value of a real number |DESCRIPTION=
____________________________________________________________________________________________


| [[Number]] <nowiki>=</nowiki> '''abs''' n |SYNTAX=
| [[Number]] <nowiki>=</nowiki> '''abs''' n |SYNTAX=
Line 19: Line 16:


| [[Number]] |RETURNVALUE=
| [[Number]] |RETURNVALUE=
____________________________________________________________________________________________
   
   
|x1= <code>_n = [[abs]] -3;</code>
|x1= <code>_n = [[abs]] -3;</code>
Returns 3 |EXAMPLE1=
Returns 3 |EXAMPLE1=
____________________________________________________________________________________________


|[[Math Commands]] |SEEALSO=
|[[Math Commands]] |SEEALSO=

Revision as of 00:08, 17 January 2021

Hover & click on the images for description

Description

Description:
Absolute value of a real number
Groups:
Math

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