This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
crpl:docs:neg [2018/06/02 15:34] – Explained how it is = *-1 TDplay | crpl:docs:neg [2022/07/04 08:47] (current) – Reformat Karsten75 | ||
---|---|---|---|
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 | ||
+ | </ | ||
+ | |||
+ | |||