/i ( x y -- z )
Factor documentation > Factor handbook > The language > Numbers > Arithmetic > Modular arithmetic
Prev:/mod ( x y -- z w )


Vocabulary
math

Inputs and outputs
xa real
ya real
zan integer


Word description
Divides x by y, truncating the result to an integer.

See also
Division by zero

Definition
IN: math

MATH: /i ( x y -- z ) foldable flushable


Methods
USING: math math.private ;

M: bignum /i bignum/i ; inline


USING: math math.complex.private ;

M: complex /i [ /i ] complex/ ; inline


USING: math math.private ;

M: fixnum /i fixnum/i ; inline


USING: math math.private ;

M: float /i float/f >integer ; inline


USING: math math.ratios.private ;

M: ratio /i scale /i ;