Math

neg

NEG

Description

Calculates the negative value of the item and pushes the result on the stack. The result is effectively the same as multiplying the original number by -1.

:!: From V 1.9, NEG will also operate against a Vector.

Examples

trace(neg(42)) #prints '-42'