Unary Negation¶
Unary negation operator (-
) can be used to represent a negative number or to invert the sign of a number.
Syntax
+operand1
Example
-50
-12.1
-0
-someNumberValue