Difference between revisions of "Sub"

From WikiManual
Jump to: navigation, search
 
 
Line 1: Line 1:
 +
===[[Operators]]:===
 +
{{Basic Commands}}
 +
 
To subtract in DB you must use inverse polish notation. For example:  
 
To subtract in DB you must use inverse polish notation. For example:  
  
Line 5: Line 8:
  
 
The result left on top of the stack is 3.
 
The result left on top of the stack is 3.
 
===Operators===
 
* [[store]]
 
* [[rnd]]
 
* [[add]]
 
* [[sub]]
 
* [[mult]]
 
* [[div]]
 
* [[inc/dec]]
 

Latest revision as of 21:45, 23 December 2005

Operators:

Basic Commands:

add & sub
mult & div
rnd
*
mod
sgn
abs

To subtract in DB you must use inverse polish notation. For example:

Ordinarily you would write: 5-2=3 Now write: 5 2 sub

The result left on top of the stack is 3.