(Numeric) should -7 % 5 = -2 ?
R.Brodie at rl.ac.uk
Tue Jul 1 10:12:13 CEST 2003
"Tim Roberts" <timr at probo.com> wrote in message news:3g32gvcolis4485956egtc35akm6lh3uq5 at 4ax.com...
> Contradicting Fredrik, something I do with great reluctance, the C standard
> specifies that the behavior is implementation-defined, so in fact BOTH answers
> "implement C semantics".
Only if you're looking at an old version of the standard; it's not implementation
dependent in C99.
More information about the Python-list