Decimal arithmetic, with example code
chris.gonnerman at newcenturycomputers.net
Mon Sep 30 22:12:00 EDT 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
You need the fixedpoint.py module installed to run this.
Chris Gonnerman -- chris.gonnerman at newcenturycomputers.net
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the Python-list