Arma 3 Scripting

Command in Math

abs

Also available as Markdown and JSON, or read the original wiki page.

Description

Returns absolute (positive) value of a real number.

Syntax

abs x

Parameters:

Returns: Number

Examples

Example 1

_n = abs -3; // Returns 3

See also

+ · -