This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
crpl:docs:neg [2018/06/02 19:34] – Explained how it is = *-1 TDplay | crpl:docs:neg [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 2: | Line 2: | ||
===== neg ===== | ===== neg ===== | ||
- | ^Arguments^Result^Notation^ | + | neg |
- | |One item on the stack|The negated value of the item |'' | + | |
=== Description === | === Description === | ||
Line 10: | Line 8: | ||
=== Examples === | === Examples === | ||
- | + | < | |
- | < | + | |
- | 5 ->a | + | |
- | <-a <-a 2 mul sub <-a neg eq # Returns true | + | |
- | </ | + | |
- | + | ||
- | < | + | |
ClearTraceLog | ClearTraceLog | ||
ShowTraceLog | ShowTraceLog | ||
Line 23: | Line 15: | ||
1.8 neg trace #-1.8 | 1.8 neg trace #-1.8 | ||
</ | </ | ||
+ | |||
+ | <code 4RPL> | ||
+ | 5 ->a | ||
+ | <-a <-a 2 mul sub <-a neg eq # Returns true | ||
+ | </ | ||
+ | |||
+ | |||