- Unary negative operator
- Last Updated: February 11, 2026
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
Reverses the sign of a numeric expression. Do not confuse this operator with the subtraction operator that subtracts one expression from another.
Syntax
|
- expression
- An expression whose value is numeric.
Example
If
you supply a negative value for the variable fx,
the r-uneg.p procedure uses the unary negative
operator (-) to reverse the sign of fx, producing
the absolute value of fx (fabs-x).
r-uneg.p
|