Difference between revisions of "Div"

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

Latest revision as of 22:45, 23 December 2005

Operators:

Basic Commands:

add & sub
mult & div
rnd
*
mod
sgn
abs

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

Ordinarily you would write: 10/5=2 Now write: 10 5 div

The result left on top of the stack is 2.