Remainder is not returning correct values for negative inputs. (modulo 12 -5) is -3, but (remainder 12 -5) is returning 2.
I'm unsure what our intended semantics are. Need to check the R7RS small standard to see what Scheme intends, what the Javascript story is behind %, and decide what these functions should return. (Probably the Scheme standard.)
I'm unsure what our intended semantics are. Need to check the R7RS small standard to see what Scheme intends, what the Javascript story is behind
%
, and decide what these functions should return. (Probably the Scheme standard.)