– Unary negative operator
Reverses the sign of a numeric expression. Do not confuse this operator with the subtraction operator that subtracts one expression from another.
Syntax
expression
ExampleIf you supply a negative value for the variable
fx
, ther-uneg.p
procedure uses the unary negative operator (-) to reverse the sign offx
, producing the absolute value offx
(fabs-x
).
See also
OpenEdge Release 10.2B
|