Decimals not equalling themselves (e.g. 0.2 = 0.2000000001)

Dave dave.hirschfeld at gmail.com
Tue Aug 5 14:28:06 EDT 2008


On 3 Aug, 15:02, CNiall <cni... at icedcerulean.com> wrote:
> However, with some, but not all, decimals, they do not seem to 'equal
> themselves'.

Back in my days studying electrical engineering I was pointed to this
reference about floating point arithmetic - http://citeseer.ist.psu.edu/goldberg91what.html

HTH,
Dave



More information about the Python-list mailing list