Re: [Hampshire] Python multiplicaton

Kezdőlap

Reply to this message
Szerző: Steve Wesemeyer
Dátum:  
Címzett: Hampshire LUG Discussion List
Tárgy: 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