This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
4rpl:commands:neg [2021/01/08 16:01] – external edit 127.0.0.1 | 4rpl:commands:neg [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
~~NOTOC~~ | ~~NOTOC~~ | ||
- | < | + | < |
+ | <= [[4rpl: | ||
====== neg ====== | ====== neg ====== | ||
Line 7: | Line 8: | ||
===== Description ===== | ===== 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. | 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 ===== | ===== Examples ===== |