[issue36151] Incorrect answer when calculating 11/3

2019-02-28 Thread Steven D'Aprano
Steven D'Aprano added the comment: Aiden: in the future, please do not post unnecessary screenshots of text. They are hostile to the blind and slight-impaired, they make it impossible to copy your code and run it ourselves, and they cannot be searched for. Instead, copy and paste the text

[issue36151] Incorrect answer when calculating 11/3

2019-02-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: To add to Zach's answer: Please do not mark issues for IDLE just because you use IDLE to send your code to Python and display the returned string answer. If in any doubt, rerun the same code directly with Python either interactively or from the command

[issue36151] Incorrect answer when calculating 11/3

2019-02-28 Thread Zachary Ware
Zachary Ware added the comment: This has nothing to do with IDLE and everything to do with how floating point numbers work; have a read through https://docs.python.org/3/tutorial/floatingpoint.html for an introduction to floating point. If you need exact decimal math, use the `decimal`

[issue36151] Incorrect answer when calculating 11//3

2019-02-28 Thread Aiden Zhou
Change by Aiden Zhou : Removed file: https://bugs.python.org/file48180/Screenshot (102)_LI.jpg ___ Python tracker ___ ___ Python-bugs-list

[issue36151] Incorrect answer when calculating 11//3

2019-02-28 Thread Aiden Zhou
Change by Aiden Zhou : Added file: https://bugs.python.org/file48180/Screenshot (102)_LI.jpg ___ Python tracker ___ ___ Python-bugs-list

[issue36151] Incorrect answer when calculating 11//3

2019-02-28 Thread Aiden Zhou
New submission from Aiden Zhou : When calculating 11//3, the last digit of the decimals is wrongly rounded to 5 as obviously it needs to be rounded to 7. IDLE (Python 3.7 32-bit) -- assignee: terry.reedy components: IDLE files: Screenshot (102)_LI.jpg messages: 336868 nosy: azihdoeun,