slag-plt / scamper

A mini-Scheme implementation designed for teaching, targeting the web
0 stars 1 forks source link

Look into remainder/modulo consistency #41

Open psosera opened 1 year ago

psosera commented 1 year ago

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.)