The unary negative operator (-) reverses the sign of a numerically interpreted operand. For example:
SET x = -60
WRITE " x: ", x,! // -60
WRITE "-x: ",-x,! // 60
ObjectScript gives the unary negative operator precedence over the binary (two-operand) arithmetic operators.
For details, see the Unary Negative (-) reference page.
To return the absolute value of a numeric expression, use the $ZABS function.