negate

Changes the sign of the input value.

Input

value

The input value.

Output

negated

A negative value if the input was positive, or a positive value if the input was negative. The magnitude of the input value is preserved.