Re: New python module to simulate arbitrary fixed and infinite precision binary floating point

2008-08-11 Thread Steven D'Aprano
On Sun, 10 Aug 2008 16:34:34 -0400, Rob Clewley wrote: Dear Pythonistas, How many times have we seen posts recently along the lines of why is it that 0.1 appears as 0.10001 in python? that lead to posters being sent to the definition of the IEEE 754 standard and the decimal.py

Re: New python module to simulate arbitrary fixed and infinite precision binary floating point

2008-08-11 Thread Rob Clewley
Is this related to minifloats? http://en.wikipedia.org/wiki/Minifloat Strictly speaking, yes, although after a brief introduction to the general idea, the entry on that page focuses entirely on the interpretation of the values as integers. My code *only* represents the values in the same way

New python module to simulate arbitrary fixed and infinite precision binary floating point

2008-08-10 Thread Rob Clewley
Dear Pythonistas, How many times have we seen posts recently along the lines of why is it that 0.1 appears as 0.10001 in python? that lead to posters being sent to the definition of the IEEE 754 standard and the decimal.py module? I am teaching an introductory numerical analysis class