Sign operators (unary)

The (unary) sign operators are + and -.

Syntax
  Plus:  
  +<operand>
  
  
  Minus: 
  -<operand>
  
  
Description

The + operator does not change the operand, whereas the - operator changes the operand to its two's complement. These operators are valid for absolute expression operands.

Example

See the following listing for an example of the unary sign operators.

Listing: Unary sign operators

+$32       ; ( = $32)
-$32       ; ( = $CE = -$32)