Negation

Syntax

-x

Explanation

Unary -, performs negation on the operand.

Examples

-2     // -2
-(-2)  // 2

Last updated