Negate [verb] (used without object) - To be negative; bring or cause negative.
I’m looking for a programming term used to mean “a way to convert a positive number into its negative form.”
For example:
- I “negate” that to -10.
- After negation: -23.
-15. Negate it. 15.
result = -result; //Negate the variable "result".
etc.
It’s comparable to how I think I use the word NOT, or !, in daily usage.
Example usage of NOT:
boolean test = false; //(!test = true.)
!1; //Value is 0 or 0x0
Example usage of NOT in sentences:
“See this flag? Use the NOT value of the flag.”
“Try NOTting the value and NOR it with the result.”
“NOT the XOR value from the base.”
Is the word “negate” optimal for the usage of such scenario? Thanks in advance.