Negate (unary form of Subtract) '-'

Negate is the unary form of Subtract. Negate toggles the sign of the value on its right; a positive value becomes negative and a negative value becomes positive. For example:

Val := -2 + A

Negate becomes an assignment operator when it is the sole operator to the left of a variable on a line by itself. For example:

-A

This would negate the value of A and store the result back to A.

Unless otherwise noted, content on this site is licensed under the
Creative Commons Attribution-ShareAlike 4.0 International License.