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

Tim Rowe digitig at gmail.com
Thu Aug 7 17:17:31 CEST 2008


2008/8/3 CNiall <cniall at icedcerulean.com>:

> However, with some, but not all, decimals, they do not seem to 'equal
> themselves'.

The golden rule is that working with decimals (in pretty much any
language) is like working with a pile of sand. Almost anything you do
leaves you with less sand and more dirt.

-- 
Tim Rowe



More information about the Python-list mailing list