123.3 + 0.1 is 123.3999999999 ?
Jeff Kowalczyk
jtk at yahoo.com
Thu May 15 13:41:37 EDT 2003
> The Python tutorial has the full story:
> http://www.python.org/doc/current/tut/node14.html
Has the python community converged on a favored
solution for financial/currency apps? An uninformed use
of floats as currency would have obvious pitfalls.
I hope to write some order/inventory apps for a client
who uses product unit prices with variations of as little
the ten-thousandths of a cent, and unit counts of
millions of items.
It would be reassuring to have the necessary float()
issues for fixed-accuracy calculation encapsulated
in a reusable class. Does a decent one already exist?
More information about the Python-list
mailing list