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: Decimal Multiplication problems: Wrong solution
Type: Stage: resolved
Components: Versions: Python 3.7
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: Shadow Raven, xtreak
Priority: normal Keywords:

Created on 2018-10-07 16:53 by Shadow Raven, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (3)
msg327290 - (view) Author: Shadow Raven (Shadow Raven) Date: 2018-10-07 16:53
Some decimals, when multiplied with others, give wrong solutions:

6.23*5 = 31.150000000000002
6.89*5 = 34.449999999999996

There are more but I can't list all.
msg327292 - (view) Author: Karthikeyan Singaravelan (xtreak) * (Python committer) Date: 2018-10-07 17:01
Thanks for the report. I think this a known limitation and not a bug. Please read more about floating point limitation at https://docs.python.org/3/tutorial/floatingpoint.html . I would propose closing this. Similar issue reported few days back : issue34907
msg327293 - (view) Author: Shadow Raven (Shadow Raven) Date: 2018-10-07 17:06
Oh okay thanks
History
Date User Action Args
2022-04-11 14:59:06adminsetgithub: 79104
2018-10-07 17:42:52mark.dickinsonsetresolution: not a bug
2018-10-07 17:06:31Shadow Ravensetstatus: open -> closed

messages: + msg327293
stage: resolved
2018-10-07 17:01:23xtreaksetnosy: + xtreak
messages: + msg327292
2018-10-07 16:53:51Shadow Ravencreate