Browse docsmath.abs
On this page
API method

math.abs

Returns the absolute value of a numeric expression.

Syntax

Atlas Script
math.abs(expression)

Parameters

expression
Numeric expression evaluated by this math method.

Return value

Returns the absolute value of a numeric expression.

Remarks

Returns the absolute value of a numeric expression.

Examples

Usage pattern
// Replace expression with values described above.
math.abs(expression);
Reference details are generated from the Atlas Script schema in this documentation source snapshot. Confirm release-specific behavior in the Atlas for Windows build you use.