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

Prev:+ ( x y -- z )
Next:* ( x y -- z )


Vocabulary
math

Inputs
xa number
ya number


Outputs
za number


Word description
Subtracts y from x.
• Subtraction of fixnums may overflow and convert the result to a bignum.
• Integer subtraction yields a fixnum when the result fits, and a bignum otherwise.
• Subtraction of floats always yields a float.
• Subtraction of ratios and complex numbers proceeds using the relevant mathematical rules.


Definition


Methods