Hacker News new | ask | show | jobs
by danbst 1686 days ago
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.