>>(1.0/10.0) + (2.0/10.0) + (3.0/10.0)
0.6000000000000 0009
0.5999999999999 9998
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
<rory@campbel l-lange.net>
<www.campbell-lange.net>
0.6000000000000 0009
>>6.0/10.0
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
<rory@campbel l-lange.net>
<www.campbell-lange.net>
Comment