Skip Headers
Previous
Previous
 
Next
Next

Unary Arithmetic Operators

A unary operator operates on only one operand.

Unary Operators

Operator Description

+


Positive value

-

Negative value


Syntax

operator operand

Example

-5 is a negative number.