Page 1 of 1

Posted: Mon Jan 26, 2009 9:17 pm
by Malcolm
Alright, granted it's been a long time since I'd to prove this from first principles...but -1 modulo 10 is still 9, right?

Then why the fuck does C# think -1 % 10 yields -1?

After some brief Googling, the answer appears to be, "because FORTRAN did it."