[issue18613] wrong float plus/minus op result

2013-08-01 Thread Brett Cannon
Brett Cannon added the comment: This is actually expected because that is just how floating point works in programming (see http://en.wikipedia.org/wiki/Floating_point for all the gnarly details). If you want exact decimal arithmetic, use the decimal module (which got significantly faster in

[issue18613] wrong float plus/minus op result

2013-08-01 Thread Laurent Fournier
Laurent Fournier added the comment: also with addition ! print (.05+.01) 0.065 -- title: wrong float minus op result -> wrong float plus/minus op result ___ Python tracker _