Negate
Negates a number.
Inputs:
- Num: The number to negate.
Outputs:
- -Num: The negated number.
Examples
- The top one turns
5
into-5
while the last one turns-8
into8
. Absolute numbers will become negative, and vice versa.
Negates a number.
Inputs:
Outputs:
5
into -5
while the last one turns -8
into 8
. Absolute numbers will become negative, and vice versa.