I am going to need to be handling money calculations and was wondering
about the float problem 
in my calculations.

Should I simply run the results of all calculations through something
like this:

from __future__ import division
...
...
s=(int(round(s, 2)*100))/100

Or should I be using Decimal on all money calculations?

Or, is there another more preferred approach?







_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to