Tugger the SLUGger!SLUG Mailing List Archives

[coders] Python newbie question


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

Cheers,
Carlo