Did you try . . .
variable1 = -1 * variable2;
. . . ?
Changing the operation sign x = - x;
Using the minus sign as an operator, why not just do this:
variable1 = - variable2;
Wouldn't that implement the example (x = - x) almost perfectly without the need for multiplication?
Please enable the necessary setting in your browser, otherwise you will not be able to log in.