[issue19269] subtraction of pennies incorrect rounding or truncation problem

2013-10-15 Thread Tim Peters
Tim Peters added the comment: Please read this: http://docs.python.org/2/tutorial/floatingpoint.html A web search will lead you to thousands of discussions of alternatives. Probably best to use the `decimal` module if you're working heavily with decimal values. -- nosy: +tim.peters

[issue19269] subtraction of pennies incorrect rounding or truncation problem

2013-10-15 Thread Pete
New submission from Pete: Python makes errors on simple subtraction with 'pennies'. >>> 2000.0 - 1880.98 119.019998 See attached file for more examples... -- components: Windows files: py_subtraction_bug messages: 200035 nosy: radiokinetics.pete priority: normal severity: norma