Decimal arithmetic, with example code

Chris Gonnerman chris.gonnerman at
Tue Oct 1 04:12:00 CEST 2002

Ok, here it is.  I have written some Python code which
displays the problems with float (floating binary)
arithmetic applied to monetary amounts.  Run this, and
many the places where the simple percentage times
amount calculation in floating binary falls down will
become obvious.

You need the module installed to run this.

(code attached)

Chris Gonnerman -- chris.gonnerman at
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
URL: <>

More information about the Python-list mailing list