- To: "Carlo Sogono" <carlo@xxxxxxxxxxxxx>
- Subject: Re: [coders] Python newbie question
- From: "Steve Lindsay" <stephen.a.lindsay@xxxxxxxxx>
- Date: Tue, 14 Nov 2006 12:20:18 +1100
- Cc: coders@xxxxxxxxxxx
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=dbYavEfpP0eBSvHYB3ttzaF4g0nz15t8WyFLnuSeQkGJxxUkpwz/+zA4m0nMH5aes2gOogcExAm5M6Px37fI6Vn/7PWcl1/NWaBPzOwRxFYxBZhiXYXZslajCQG0OVP8yLrFda9dR/ogt1rRtAeDDhvxoQFhaMN6SJGCf/t+qr0=
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