homepage

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: Incorrect division result
Type: behavior Stage:
Components: Versions: Python 3.4
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: benjamin.peterson, mbrijun@gmail.com
Priority: normal Keywords:

Created on 2015年02月08日 19:13 by mbrijun@gmail.com, last changed 2022年04月11日 14:58 by admin. This issue is now closed.

Messages (2)
msg235564 - (view) Author: Martynas Brijunas (mbrijun@gmail.com) Date: 2015年02月08日 19:13
Dear Python team,
when dividing 3 by 7, I expect to get the following result:
0.428571428571428571428571428571428571428571428571428571428571...
What I am getting in the Python interpreter is this:
>>> 3 / 7
0.42857142857142855
Which in my opinion is incorrect.
msg235565 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2015年02月08日 19:15
https://docs.python.org/3/tutorial/floatingpoint.html 
History
Date User Action Args
2022年04月11日 14:58:12adminsetgithub: 67601
2015年02月08日 19:15:57benjamin.petersonsetstatus: open -> closed

nosy: + benjamin.peterson
messages: + msg235565

resolution: not a bug
2015年02月08日 19:13:12mbrijun@gmail.comcreate

AltStyle によって変換されたページ (->オリジナル) /