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: Calculation Mistake 1.5 * 0.3
Type: behavior Stage: resolved
Components: Versions: Python 3.4
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: ethan.furman, zeneregion
Priority: normal Keywords:

Created on 2015-11-29 16:40 by zeneregion, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
Screenshot from 2015-11-29 17-39-20.png zeneregion, 2015-11-29 16:40 error_screenshot
Messages (2)
msg255579 - (view) Author: Yunus Emre Kursav (zeneregion) Date: 2015-11-29 16:40
Dear Authorized Person,

When I was using python, I found a bug. When I multiplied 1.5 time 0.3, I got 0.44999999999999996 as a result.

Best Regards,
Yunus
msg255580 - (view) Author: Ethan Furman (ethan.furman) * (Python committer) Date: 2015-11-29 16:50
Floating point calculations are not exact.

https://docs.python.org/3/tutorial/floatingpoint.html
https://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html
History
Date User Action Args
2022-04-11 14:58:24adminsetgithub: 69948
2015-11-29 16:50:59ethan.furmansetstatus: open -> closed

nosy: + ethan.furman
messages: + msg255580

resolution: not a bug
stage: resolved
2015-11-29 16:40:53zeneregioncreate