- Minus Operator

Operators

- Minus Operator

On the following example it is used as mathematical minus operator and result is 1

CODE

Using double minus means decreasing the actual number 2 and result is 1

CODE

Using double minus before the variable means multiplying with -1 and result is 2

CODE