Thanks all, that's very helpful, sorry to waste your time with a common question. I have tried the decimal module and will definitely keep using it if I need to do this kind of calculation again.
I have 1 more question that the floating point article that was linked didn't really answer: >>> x = 0.8 >>> x 0.800000000000004 >>> x * 5 4.0 Shouldn't I be expecting something like 4.0000000000002 ? -- http://mail.python.org/mailman/listinfo/python-list