User Tools

Site Tools


crpl:docs:neg

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:neg [2015/03/30 19:27] warrencrpl:docs:neg [2022/07/04 08:47] (current) – Reformat Karsten75
Line 2: Line 2:
 =====  neg  ===== =====  neg  =====
  
-^Arguments^Result^Notation^ +neg
-|One item on the stack|The negated value of the item |''n1 -- n2 ''+
  
 === Description === === Description ===
-Calculates the negative value of the item and pushes the result on the stack. +Calculates the negative value of the item and pushes the result on the stack. Is the same as multiplying by -1. 
-  5 ->a +
-  <-a <-a 2 mul sub <-a neg eq # Returns true+
 === Examples === === Examples ===
-<code>+<code 4RPL>
 ClearTraceLog ClearTraceLog
 ShowTraceLog ShowTraceLog
Line 18: Line 15:
 1.8 neg trace #-1.8 1.8 neg trace #-1.8
 </code>  </code> 
 +
 +<code 4RPL>
 +  5 ->a
 +  <-a <-a 2 mul sub <-a neg eq # Returns true  
 +</code> 
 +
 +
  
crpl/docs/neg.1427758054.txt.gz · Last modified: 2015/03/30 19:27 by warren