» Python 3 Rounding Surprise
I discovered this subtle change when one of my unit tests mysteriously failed once I ported it from Python 2 to Python 3. A computed price was consistently one microdollar higher in the Python 3 version. I eventually tracked it down to a change in rounding behaviour between Python 2 and 3. According to the […]