User Tools

Site Tools


crpl:docs:abs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
crpl:docs:abs [2014/10/01 15:02] – external edit 127.0.0.1crpl:docs:abs [2022/05/18 15:23] (current) – ~~NOTOC~~ Karsten75
Line 1: Line 1:
-~~DISCUSSION~~+~~NOTOC~~
 <- [[crpl:crplreference| CRPL reference]] <- [[crpl:crplreference#math_commands|Math Commands]] <- [[crpl:crplreference| CRPL reference]] <- [[crpl:crplreference#math_commands|Math Commands]]
-=====  abs  ===== 
  
-^Arguments^Result^Notation^ +====== abs ====== 
-|One item on the stack|The Absolute Value of the item |''n1 -- n2 ''|+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 === + 
-<code>example goes here</code> +===== Examples ===== 
 +<code 4rpl> 
 +trace(abs(-1)) #prints '1' 
 +</code> 
  
crpl/docs/abs.1412190170.txt.gz · Last modified: 2014/10/01 15:02 by 127.0.0.1