ABS


The ABS function will return the mathematical absolute of the ()expression.

 

COMMAND SYNTAX

ABS(expression)

 

SYNTAX ELEMENTS

expression can be an expression of any form that should evaluate to a numeric. The ABS function will then return the mathematical absolute of the expression. This will convert any negative number into a positive result.

 

NOTES

This can be expressed as:
value < 0 ? 0 - value : value

 

EXAMPLES

CRT ABS(10-15)
Displays the value 5.

PositiveVar = ABS(100-200)
Assigns the value 100 to the variable PositiveVar.


jBC