ABS function

Purpose

Return the absolute value of a numeric expression.

Syntax

y = ABS(numeric_expression)

Remarks

The absolute value of a number is its non-negative value.  For example, the absolute value of -3 is 3, and the absolute value of +3 is also 3.  The absolute value of 0 is 0.

See also

SGN