Tugger the SLUGger!SLUG Mailing List Archives

Re: [coders] Python newbie question


On 11/14/06, Carlo Sogono <carlo@xxxxxxxxxxxxx> wrote:
I'm attempting to learn Python and have been playing around with it for
the past few days. Why is my output not too smart:

 >>> 8.0 + 0.45
8.4499999999999993

However this seems ok:

 >>> 0.45 + 0.55
1.0


I suspect it's related to this:

http://www.python.org/doc/faq/general.html#id34

Cheers.....Steve