floating point glitch

Cameron Laird claird at lairds.us
Sat Sep 25 15:08:05 EDT 2004


In article <7xzn3hcoo8.fsf at ruckus.brouhaha.com>,
Paul Rubin  <http://phr.cx@NOSPAM.invalid> wrote:
>David O'Farrell <David.OFarrell at ericsson.com> writes:
>> Is this only on solaris ?
>
>No, it's inherent in how floating point conversions work.  It happens
>on all IEEE 754 machines.  You don't need that fancy list-append stuff
>to see it happen.  Just type
>
>>>> 66.6
>66.599999999999994
>

Next time someone tries to Wikify the definitive response to these
FAQs (I don't feel up to it myself, this week), let me recommend
mention of "Computing over the Reals: Where Turing Meets Newton"
<URL: http://www.ams.org/notices/200409/fea-blum.pdf >.



More information about the Python-list mailing list