Floating point errors?
Grant Edwards
grante at visi.com
Fri May 11 13:21:00 EDT 2001
In article <110520010833485877%jwbaxter at olympus.net>, John W. Baxter wrote:
>In article <mailman.989545217.22380.python-list at python.org>, Tim Peters
><tim.one at home.com> wrote:
>
>> Harrumph. Of course they're exact! Selling them as some sort of fuzzy
>> mystery is what keeps people confused about them 50 years after they should
>> have learned better.
>
>Yes, but they only exactly represent a few of the many possible values.
Since 0% of the possible real numbers are representable in IEEE
754, then it's obviously useless and all floating-point support
should be dropped from Python.
>Murphy's law suggests that the particular value which needs to be
>exactly represented to keep the boiler from exploding can't be. ;-)
Exactly.
--
Grant Edwards grante Yow! I just forgot my
at whole philosophy of life!!!
visi.com
More information about the Python-list
mailing list