abs: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("serv...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| ofp |Game name=
| ofp


|1.00|Game version=
|1.00


|arg= local |Multiplayer Arguments=
|arg= local |Multiplayer Arguments=


|gr1= Math |GROUP1=
|gr1= Math


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


| [[Number]] <nowiki>=</nowiki> '''abs''' n |SYNTAX=
| [[Number]] <nowiki>=</nowiki> '''abs''' n


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


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


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


}}
}}

Revision as of 00:02, 18 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

Bottom Section