4 hundred quadrillonth?

seanm.py at gmail.com seanm.py at gmail.com
Thu May 21 23:41:14 CEST 2009


On May 21, 5:36 pm, Christian Heimes <li... at cheimes.de> wrote:
> seanm... at gmail.com schrieb:
>
> > The explaination in my introductory Python book is not very
> > satisfying, and I am hoping someone can explain the following to me:
>
> >>>> 4 / 5.0
> > 0.80000000000000004
>
> > 4 / 5.0 is 0.8. No more, no less. So what's up with that 4 at the end.
> > It bothers me.
>
> Welcome to IEEE 754 floating point land! :)
>
> Christian

Thanks for the link and the welcome. Now onward to Bitwise
Operations....

Sean



More information about the Python-list mailing list