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.

Author terry.reedy
Recipients azihdoeun, terry.reedy, zach.ware
Date 2019-02-28.22:08:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1551391727.36.0.0496614962754.issue36151@roundup.psfhosted.org>
In-reply-to
Content
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 line.  (Note: Windows requires "", not '', on command line.)

C:\Users\Terry>python -c "print(11/3)"
3.6666666666666665 

As for the result: 11/3 cannot be exactly represented as a binary (or decimal) finite-precision floating point number.  In this case, the nearest binary float is less that 11/3.  Python prints floats with up to 17 decimal digits.    We can get more with the decimal module.

>>> decimal.Decimal(11/3)
Decimal('3.666666666666666518636930049979127943515777587890625')

We can also check with decimal float literals
>>> 11/3 == 3.6666666666666665)
True

This expression is true for all 18 digit literals from
3.66666666666666630 to
3.66666666666666674

It would have been better to ask about 11/3 on python-list (for instance), where other beginners could see the answer, rather than here.  I will repost my answer there.
History
Date User Action Args
2019-02-28 22:08:47terry.reedysetrecipients: + terry.reedy, zach.ware, azihdoeun
2019-02-28 22:08:47terry.reedysetmessageid: <1551391727.36.0.0496614962754.issue36151@roundup.psfhosted.org>
2019-02-28 22:08:47terry.reedylinkissue36151 messages
2019-02-28 22:08:47terry.reedycreate