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