Charles Stanhope is a user on You can follow them or interact with them if you have an account anywhere in the fediverse.
Charles Stanhope @cstanhope

Whoa. I didn't realize Python's integer division rounds down towards negative infinity and not towards zero.

>>> -1//2


A little lunch time web searching revealed Guido's take on the history of integer division in Python:

@cstanhope ja!jah! jah! A pattern of 60 one's meant negative zero! :-)

@cstanhope I appreciate that Haskell makes both options available, as different pairs of operators (quot/rem vs div/mod) so you can specify whether you want truncation or floor. Although I always forget which operator has which behavior…

@jamey Haskell is on my "to learn" pile. One day...