User Tools

Site Tools


4rpl:commands:neg

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
4rpl:commands:neg [2021/01/08 16:01] – external edit 127.0.0.14rpl:commands:neg [2025/02/14 14:57] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ~~NOTOC~~ ~~NOTOC~~
-<=[[4rpl:start| Index]]+<=[[4rpl:start| Index]] \\ 
 +<= [[4rpl:start#Math]]  
  
 ====== 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 =====
4rpl/commands/neg.1610121708.txt.gz · Last modified: 2025/02/14 14:56 (external edit)