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
Last revisionBoth sides next revision
crpl:docs:abs [2014/10/01 15:02] – external edit 127.0.0.1crpl:docs:abs [2022/05/18 15:22] – Experimental port to 4RPL format reference Karsten75
Line 1: Line 1:
-~~DISCUSSION~~+
 <- [[crpl:crplreference| CRPL reference]] <- [[crpl:crplreference#math_commands|Math Commands]] <- [[crpl:crplreference| CRPL reference]] <- [[crpl:crplreference#math_commands|Math Commands]]
 =====  abs  ===== =====  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.txt · Last modified: 2022/05/18 15:23 by Karsten75