/ ( x y -- z )
Factor handbook » The language » Numbers » Arithmetic » Number protocol

Prev:* ( x y -- z )
Next:Division by zero


Vocabulary
math

Inputs
xa number
ya number


Outputs
za number


Word description
Divides x by y, retaining as much precision as possible.
Division of fixnums may yield a ratio, or overflow and yield a bignum.
Division of bignums may yield a ratio.
Division of floats always yields a float.
Division of ratios and complex numbers proceeds using the relevant mathematical rules.


See also
Division by zero

Definition


Methods