Re: [Hampshire] Python multiplicaton

Page principale

Répondre à ce message
Auteur: Steve Wesemeyer
Date:  
À: Hampshire LUG Discussion List
Sujet: 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