Posted: Mon Jan 26, 2009 9:17 pm
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."
Then why the fuck does C# think -1 % 10 yields -1?
After some brief Googling, the answer appears to be, "because FORTRAN did it."