This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
crpl:docs:abs [2013/01/18 06:16] – grauniad | crpl:docs:abs [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ~~DISCUSSION~~ | + | ~~NOTOC~~ |
<- [[crpl: | <- [[crpl: | ||
- | ===== abs ===== | ||
- | ^Arguments^Result^Notation^ | + | ====== abs ====== |
- | |One item on the stack|The Absolute Value of the item |'' | + | abs(<-var) ->absvar |
- | + | ===== Description | |
- | === Description === | + | |
Calculates the absolute value of the item and pushes the result on the stack. | Calculates the absolute value of the item and pushes the result on the stack. | ||
- | === Examples === | + | |
- | < | + | ===== Examples |
+ | < | ||
+ | trace(abs(-1)) #prints ' | ||
+ | </ | ||