User Tools

Site Tools


4rpl:commands:neg

Index
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'

Index

4rpl/commands/neg.txt · Last modified: 2022/05/19 06:22 by Karsten75