strings (dollar.cents) into floats

Wildemar Wildenburger lasses_weil at klapptsowieso.net
Thu Aug 30 20:12:36 EDT 2007


Ben Finney wrote:
> You most likely do *not* want floating-point numbers for currency,
> since they rely on the operating system's binary floating point
> support which cannot accurately represent decimal fractions.
> 

I've heard (ok, read) that several times now and I understand the 
argument. But what use is there for floats, then? When is it OK to use them?

/W



More information about the Python-list mailing list