Why Python’s Integer Division Floors
Guido van Rossum: I made the same choice because there are some interesting applications of the modulo operation where the sign of a is uninteresting. Consider taking a POSIX timestamp (seconds since the start of 1970) and turning it into the time of day. Since there are 24*3600 = 86400 seconds in a day, this … Continue reading Why Python’s Integer Division Floors
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed