Why 3.0/5.0 = 0.59999...

Grant Edwards grante at visi.com
Tue May 9 10:13:31 EDT 2006


On 2006-05-09, Davy <zhushenli at gmail.com> wrote:

> When I type 3.0/5.0, the result is 0.59999...
>
> Is there some precision loss? And how to overcome it?

Doesn't anybody read the FAQ?  Or even browse through current
threads before posting?

Sheesh.  This has been in the FAQ forever, and was answered
again in the group just yesterday.

> Any suggestions will be appreciated!

I doubt it.

-- 
Grant Edwards                   grante             Yow!  I'LL get it!! It's
                                  at               probably a FEW of my
                               visi.com            ITALIAN GIRL-FRIENDS!!



More information about the Python-list mailing list