Negates a number.

Inputs:

  • Num: The number to negate.

Outputs:

  • The negated number.

Examples

  • The top one turns 5 into -5 while the last one turns -8 into 8. Absolute numbers will become negative, and vice versa.