>>> (1.0/10.0)  + (2.0/10.0) + (3.0/10.0)
0.60000000000000009
>>> 6.0/10.0
0.59999999999999998

Is using the decimal module the best way around this? (I'm expecting the first
sum to match the second). It seem anachronistic that decimal takes strings as
input, though.

Help much appreciated;
Rory
-- 
Rory Campbell-Lange 
<[EMAIL PROTECTED]>
<www.campbell-lange.net>
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to