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: Returning a float via a method yields in an approximate value received
Type: behavior Stage: resolved
Components: macOS Versions: Python 2.7
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: ned.deily, ronaldoussoren, terminadoru, zach.ware
Priority: normal Keywords:

Created on 2015-07-26 17:43 by terminadoru, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
recursive.py terminadoru, 2015-07-26 17:43
Messages (2)
msg247444 - (view) Author: Dorin (terminadoru) * Date: 2015-07-26 17:43
I was making a script to get some best configurations in a recursive manner when I noticed a weird result. In the attached script the method should return 1.3 but it received 1.2999999997
msg247445 - (view) Author: Zachary Ware (zach.ware) * (Python committer) Date: 2015-07-26 17:48
https://docs.python.org/3/tutorial/floatingpoint.html
History
Date User Action Args
2022-04-11 14:58:19adminsetgithub: 68918
2015-07-26 17:48:01zach.waresetstatus: open -> closed

nosy: + zach.ware
messages: + msg247445

resolution: not a bug
stage: resolved
2015-07-26 17:43:12terminadorucreate