It depends on how you define the modulo operator [0]--there are definitions where (-1)%5 == 4 and definitions where (-1)%5 == -1. Presumably the GP is referring to the former case.
[0]: https://en.wikipedia.org/wiki/Modulo_operation#Remainder_cal...
[0]: https://en.wikipedia.org/wiki/Modulo_operation#Remainder_cal...
No comments yet.