3 ms·
4%3 is 1, so -4%3=-1=3-1=2 (mod 3). I disagree about maintenance: use the right formula and do careful unit testing. Abs isn't a great help here either.
by klyrs 7y ago
4%3 is 1, so -4%3=-1=3-1=2 (mod 3).
I disagree about maintenance: use the right formula and do careful unit testing. Abs isn't a great help here either.