Key Pages: [ Rope Home Page | Basics (tutorial) | Language Reference | Download ]
Performs integer division of numbers.
Without AnchorBrackets, it divides the top item on the stack into the previous one and pushes back the result. So "10 5 div" means "10 / 5" (which = 2)
With AnchorBrackets, it takes the first item in the list and divides it by all the others in turn. So "div(100 4 5)" means "100 / 4 / 5" (which = 5).
10 5 div # -- prints: 2 div(100 4 5) # -- prints: 5
Lowth.com: [ Home | Rope | P2PWall | LinWiz | cutter | Protector - Free Antivirus software | TapeIO ]