[issue4061] summing two numbers-strange answer

Mehmet Yozcu report at bugs.python.org
Tue Oct 7 03:46:14 CEST 2008


Mehmet Yozcu <mhmtyozcu001 at gmail.com> added the comment:

Dear Benjamin Peterson;
Thank you very much for your answer. That was very helpful
Best Wishes

2008/10/7 Benjamin Peterson <report at bugs.python.org>:
>
> Benjamin Peterson <musiccomposition at gmail.com> added the comment:
>
> This is a result of poor floating-point precision:
>
>>>> 2.3
> 2.2999999999999998
>>>> 6.3
> 6.2999999999999998
>
> See http://docs.python.org/tutorial/floatingpoint.html for more information.
>
> ----------
> nosy: +benjamin.peterson
> resolution:  -> invalid
> status: open -> closed
>
> _______________________________________
> Python tracker <report at bugs.python.org>
> <http://bugs.python.org/issue4061>
> _______________________________________
>

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4061>
_______________________________________


More information about the Python-bugs-list mailing list