Euclidean remainder.
Equivalent to %
, except that negative arguments are rounded differently:
(let rem (rem-euclid numer denom))
(let div (div-euclid numer denom))
(ensure (== numer (+ (* denom div) rem)))
Euclidean remainder.
Equivalent to %
, except that negative arguments are rounded differently:
(let rem (rem-euclid numer denom))
(let div (div-euclid numer denom))
(ensure (== numer (+ (* denom div) rem)))