Re: [Hampshire] Python multiplicaton

Top Page

Reply to this message
Author: Steve Wesemeyer
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] Python multiplicaton
Owain,

On Thursday 14 January 2010 11:51:35 Owain Clarke wrote:
> Could anyone explain to me why 3*7.6 gives me 22.799999999999997? I have
> Python 2.5.2
>
> Cheers
>
> Owain Clarke


Have a look at:

http://docs.python.org/tutorial/floatingpoint.html

Cheers,
Steve