Generalized to arbitrary real numbers, using the definition:
(truncate (/ x y))
.
Generalized to arbitrary real numbers, using the definition:
(- x (* y (truncate (/ x y))))
. Ify
is0
, the result isx
- i.e. we take(* 0 (quotient x 0))
to be0
. The result is inexact if either argument is inexact, even ifx
is exact andy
is 0.