TIL that in Python, int(...) isn't the equivalent of math.floor(...) for negative numbers. That resulted in an interesting bug.

Comments