This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
crpl:docs:neg [2014/01/31 23:40] – Clean0nion | crpl:docs:neg [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ~~DISCUSSION~~ | ||
<- [[crpl: | <- [[crpl: | ||
===== neg ===== | ===== neg ===== | ||
- | ^Arguments^Result^Notation^ | + | neg |
- | |One item on the stack|The negated value of the item |'' | + | |
=== Description === | === Description === | ||
- | Calculates the negative value of the item and pushes the result on the stack. | + | Calculates the negative value of the item and pushes the result on the stack. |
- | a - 2a | + | |
- | < | + | |
=== Examples === | === Examples === | ||
- | < | + | < |
+ | ClearTraceLog | ||
+ | ShowTraceLog | ||
+ | 10 neg Trace #-10 | ||
+ | -5 neg Trace #5 | ||
+ | 1.8 neg trace #-1.8 | ||
+ | </ | ||
+ | |||
+ | <code 4RPL> | ||
+ | 5 ->a | ||
+ | <-a <-a 2 mul sub <-a neg eq # Returns true | ||
+ | </ | ||
+ | |||