Python math is off by .000000000000045 (original) (raw)

Tobiah toby at tobiah.org
Sat Feb 25 12:56:49 EST 2012


For every floating point number there is a corresponding real number, but 0% of real numbers can be represented exactly by floating point numbers.

It seems to me that there are a great many real numbers that can be represented exactly by floating point numbers. The number 1 is an example.

I suppose that if you divide that count by the infinite count of all real numbers, you could argue that the result is 0%.



More information about the Python-list mailing list