Simon Willison’s Weblog

Fixed Point Arithmetic in Python

The Python Tutorial now includes a new appendix on the limitations of floating point arithmetic. Via Simon Brunning, who also linked to the lengthier What Every Computer Scientist Should Know About Floating-Point Arithmetic almost exactly a year ago.

This is Fixed Point Arithmetic in Python by Simon Willison, posted on 28th April 2003.

Next: Tim Bray on Unicode

Previous: CSS Headings

Previously hosted at http://simon.incutio.com/archive/2003/04/28/fixedPoint