Leonardus
Analogous LeoScript Operator idiv

STACK

$ I_1\ I_2\ --\ I $
$ Q_1\ Q_2\ --\ Q $ $ R_1\ R_2\ --\ R $

DESCRIPTION

A red book operator with additional Q support.

  • If both operands are I,
    $ I_1 $ will be divided by $ I_2 $ and the operator returns
    the I part of the quotient, with any fractional part discarded.
  • If both operands are Q,
    the quotient $ Q_1/Q-2 $ is returned.
  • If both operands are R,
    the quotient $ truncate(R_1/R_2) $ is returned.

ORIGIN

Core code registered in systemdict.

SEE ALSO

Analogous LeoScript Operator div