Negation

Syntax

-…numerix-expr…

Typing

numeric -> signed-numeric

Description

Negation of the numeric operand.

The return type is either the same as that of the operand, or a non smaller signed integer type

Examples

expression evaluates to
-(1+1) -2