Comment Comment by danbst Both are correct from math POV, but they differ in how "integer division" works.Python floors `7 // -5` to -2, C rounds `7 / (-5)` to -1. parent danbst 5 years ago
Python floors `7 // -5` to -2, C rounds `7 / (-5)` to -1.