This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| crpl:docs:abs [2019/03/04 01:46] – Karsten75 | crpl:docs:abs [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ~~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 ' | ||
| + | </ | ||