123.3 + 0.1 is 123.3999999999 ?
Tim Peters
tim.one at comcast.net
Thu May 15 14:06:06 EDT 2003
[Jeff Kowalczyk]
> Has the python community converged on a favored
> solution for financial/currency apps? An uninformed use
> of floats as currency would have obvious pitfalls.
http://fixedpoint.sourceforge.net/
seems to be most used at this time.
On the horizon, Python CVS's nondist/sandbox/decimal/ directory contains a
first-cut implementation of IBM's proposal for decimal arithmetic. The IBM
proposal is here:
http://www2.hursley.ibm.com/decimal/
I don't think this will make it into Python 2.3 -- although it might, if
people volunteered enough work to move it along quickly.
More information about the Python-list
mailing list