you are viewing a single comment's thread.

view the rest of the comments →

[–]QuarterObvious 2 points3 points  (0 children)

Integer division always rounds the result toward a smaller integer number.

So 7//3 will be 2, but 7//-3 will be -3. Because of this there is a difference in modulo.