This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| crpl:docs:neg [2014/10/01 19:02] – external edit 127.0.0.1 | 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. |
| - | 5 ->a | + | |
| - | < | + | |
| === Examples === | === Examples === | ||
| - | < | + | < |
| - | Converts | + | ClearTraceLog |
| - | Converts | + | ShowTraceLog |
| + | 10 neg Trace #-10 | ||
| + | -5 neg Trace #5 | ||
| + | 1.8 neg trace #-1.8 | ||
| + | </ | ||
| + | |||
| + | <code 4RPL> | ||
| + | | ||
| + | <-a <-a 2 mul sub <-a neg eq # Returns true | ||
| + | </ | ||
| + | |||