So what should i mod 0 really be equal to? There has been a very interesting discussion over in the Mizar mailing list, starting with John Harrison's original post, followed by his superb summary of different choices, and Robert Boyer's response. The discussion has continued since, but since the archive is only updated daily, you'll have to check back tomorrow to see the rest!
However, I thought that people here too might be interested in this discussion. I am not sure which definition I prefer, but the ring-theoretical argument that Z/<0> is isomorphic to Z, makes it compelling to define it so that i mod 0 = i (rather than an error).
algebra
frac
A related question is what should -0.3 mod 1 be equal to? In mathematics, it is fractional part, and equal to 0.7, but in Maple frac is different, and gives -0.3 in this example.
Alec
R / Z
here I also prefer to have the representants with positive sign ... as usual in Math