ROPE Language Reference - "div"

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

See Also

add sub mod mult