[issue28345] 8/3 is calculated incorrectly

2016-10-03 Thread Eryk Sun
Eryk Sun added the comment: A CPython float uses the platform's double-precision floating point. The significand of a double has 53 bits of precision, which is 15 decimal digits of precision. However, uniquely representing a double in decimal requires 17 digits, which is why the str and repr f

[issue28345] 8/3 is calculated incorrectly

2016-10-02 Thread SilentGhost
Changes by SilentGhost : -- stage: -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue28345] 8/3 is calculated incorrectly

2016-10-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: Please see https://docs.python.org/3/tutorial/floatingpoint.html Python 3.5.2 (default, Sep 10 2016, 08:21:44) [GCC 5.4.0 20160609] on linux Type "help", "copyright", "credits" or "license" for more information. >>> 2.6667 == 2.6665 T

[issue28345] 8/3 is calculated incorrectly

2016-10-02 Thread Jonas Wegelius
New submission from Jonas Wegelius: When you type 8/3, the interpreter return incorrect value: 2.6665 it should be 2.6667 -- components: Interpreter Core messages: 277931 nosy: Jonas Wegelius priority: normal severity: normal status: open title: 8/3 is calculate