Re: [Hampshire] Python multiplicaton

Etusivu

Vastaa
Lähettäjä: Steve Wesemeyer
Päiväys:  
Vastaanottaja: Hampshire LUG Discussion List
Aihe: 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