$abs

Return the absolute value of a numeric value.

$abs(X)

Example: vResult = $abs(vNum - 100)

Parameters

X—numeric value.

Return Values

Absolute value of X.

If an error occurs, $procerror contains a negative value that identifies the exact error.

Use

Allowed in all component types.

Using $abs

The following example returns the absolute value of the given expression:

vResult = $abs(vNumber - 100)

If the value of vNumber is 25, the value stored in vResult is 75.