ABS

ABS returns the absolute value of x. It is the positive value of x.

Read syntax diagramSkip visual syntax diagramABS( x)
x
Expression.

The mode of the result is REAL. The result has the base, scale, and precision of x, except when x is COMPLEX FIXED(p,q). In the latter case, the result is REAL FIXED(min(n,p+1),q) where n is N for DECIMAL and M for BINARY.