Next: Unary Plus, Previous: Operators, Up: Operators [Contents][Index]
Unary minus is defined for scalar
s and array
s (both real
and complex). It precedes its operand and changes the sign of the
operand from positive to negative or vice versa. For example, if
x
equals 16
, then -x
equals -16
, and
--x
equals 16
.