Progress
Language Reference
– 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
An expression whose value is numeric.
EXAMPLEIf you supply a negative value for the variable x, the example procedure uses the unary negative operator (-) to reverse the sign of x, producing the absolute value of x (abs-x).
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |