This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Wrong calculation result
Type: behavior Stage:
Components: Versions: Python 2.5
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: dawton, eric.smith
Priority: normal Keywords:

Created on 2010-03-03 09:10 by dawton, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg100335 - (view) Author: (dawton) Date: 2010-03-03 09:10
I'm using Python 2.3 and today I found out, that Python gives following result:
>>> 2.05*60
122.99999999999999

while
>>> 2.05*10*6
123.0

Is there some explanation or is it a bug?
Thanks for answer!
msg100336 - (view) Author: Eric V. Smith (eric.smith) * (Python committer) Date: 2010-03-03 09:32
Please read http://docs.python.org/tutorial/floatingpoint.html
msg100337 - (view) Author: (dawton) Date: 2010-03-03 10:08
thanks a lot!
*d.

______________________________________________________________
> Od: "Eric Smith" <report@bugs.python.org>
> Komu: dawton@centrum.cz
> Datum: 03.03.2010 10:32
> Předmět: [issue8049] Wrong calculation result
>
>Eric Smith <eric@trueblade.com> added the comment:
>
>Please read http://docs.python.org/tutorial/floatingpoint.html
>
>----------
>nosy: +eric.smith
>resolution:  -> invalid
>status: open -> closed
>
>_______________________________________
>Python tracker <report@bugs.python.org>
><http://bugs.python.org/issue8049>
>_______________________________________
>
History
Date User Action Args
2022-04-11 14:56:58adminsetgithub: 52297
2010-03-03 10:08:50dawtonsetmessages: + msg100337
2010-03-03 09:32:52eric.smithsetstatus: open -> closed

nosy: + eric.smith
messages: + msg100336

resolution: not a bug
2010-03-03 09:10:49dawtoncreate