!!! 2.1, 2.2, 2.2.1, PYTHON BUGS ????

rzed Dick.Zantow at lexisnexis.com
Thu May 30 11:51:35 EDT 2002


"Franck Abella" <fabella at free.fr> wrote in message
news:ad5c62$77l$1 at wanadoo.fr...
> Hi,
>
> Math problem:
> ----------- 1 -------------
> try this     >>>>     i=7/3.0
>                >>>>     i
>
> result       >>>>      7.3333333333333335  (first problem it should
be equal
> to 7.3333333333333334)

If it really says this, then there is a problem, all right. But I'm
supposing it's a typo for 2.3333...

> ----------- 2 --------------
> try this    >>>> i = 7.3335
>               >>>> j
> result      >>>>7.3334999999999999  (false)
> ------------ 3 -------------
> try this     >>>> j = 6.2
>                >>>> j
> result       >>>> 6.2000000000000002
>
> I would like to know if yo have those problems
> Thanks
>
> Frank
>
>
>
>
>





More information about the Python-list mailing list