Skip to main content

Built-in Functions and Actions

ABS

ABS(expression)

expressionThe value (REAL or INTEGER) for which to return the absolute value.
Return:ABS returns a single value of the same type as the expression.

The ABS function returns the absolute value of the expression (always a non-negative number).

Example:

AbsVal1 := ABS(1); // returns 1
AbsVal2 := ABS(-1); // returns 1