I'm confused about the following integer math in python:
-7/3 = -3 since (-3)*3 = -9 < -7. I understand.
7/-3 = -3 I don't get how this is defined. (-3)*(-3) = 9 > 7. In my opinion, it should be -2, because (-3)*(-2) = 6 < 7.
How does this work?
//, e.g.-7 // 3 = -3but-7 / 3 = -2.33...-7/3and7/-3, so having two different results would be a bit more complicated.//in Python 2 as well.