User Tools

Site Tools


crpl:docs:add

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:add [2013/07/29 14:34] thepenguincrpl:docs:add [2022/07/05 18:07] – Reformat 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]]
 =====  add  ===== =====  add  =====
  
-^Arguments^Result^Notation^ +<-a <-b add ->result 
-|Two items on the stack|The sum of two items |''n1 n2 -- n3 ''|+
  
 +=== How to use ===
 +
 +| Standard CRPL | //num num// **add **   |
 +| Warp notation | **add** (//num num//) |
  
 === Description === === Description ===
 Adds the two arguments together and pushes the result on the stack. Adds the two arguments together and pushes the result on the stack.
 === Examples === === Examples ===
-<code>+<code 4RPL>
 ShowTraceLog ShowTraceLog
 4 5 add Trace 4 5 add Trace
 #Adds 4 and 5, then traces the result.  You should see a 9 appear in the trace log. #Adds 4 and 5, then traces the result.  You should see a 9 appear in the trace log.
 </code>  </code> 
 +
 +Same example in Warp notation:
 +
 +<code 4RPL>
 +showtracelog
 +add(4 5) ->result
 +Trace(<-result)
 +</code>
crpl/docs/add.txt · Last modified: 2025/02/14 14:57 by 127.0.0.1