ABS

Function

ABS(N) returns the absolute value of the argument.

Syntax

ABS(N)

where N can be a variable, number or result of numeric expression.

Examples

Y=ABS(-12.345)

returns Y=12.345

Y=ABS(-0.5)

returns Y=0.5

Y=ABS(0.5)

returns Y=0.5

or if V=-27

Y=ABS(V)

returns Y=27

Y=ABS(V-50)

returns Y=77

Remarks

The absolute value returned is always positive.