ABS: Calculating Absolute Value

How to:

The ABS function returns the absolute value of a number.

Syntax: How to Calculate Absolute Value

ABS(in_value)

where:

in_value

Numeric

Is the value for which the absolute value is returned. If you use an expression, use parentheses as needed to ensure the correct order of evaluation.

Example: Calculating Absolute Value

ABS calculates the absolute value of DIFF.

ABS(DIFF);

For 15, the result is 15.

For -2, the result is 2.

WebFOCUS

Feedback