3.2*2 is 9.6 ... or maybe it isn't?

Steven D'Aprano steve at REMOVE-THIS-cybersource.com.au
Fri Jun 26 06:04:04 EDT 2009

On Thu, 25 Jun 2009 12:31:05 -0700, Mark Dickinson wrote:

>> We all know that IEEE floating point is a horribly inaccurate
>> representation [...]
> That's a bit extreme!  Care to elaborate?

Well, 0.1 requires an infinite number of binary places, and IEEE floats 
only have a maximum of 53 or so, so that implies that floats are 
infinitely inaccurate...



More information about the Python-list mailing list