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 christian.heimes
Recipients christian.heimes, mark.dickinson, matanya.stroh
Date 2018-02-06.21:11:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1517951517.24.0.467229070634.issue32783@psf.upfronthosting.co.za>
In-reply-to
Content
Welcome to the astounding world of IEEE 754 floating point operations. Python's float type is based on C's 64bit double precision float. The value in _math.c is as precise as a double is able to contain:

>>> 0.6931471805599453094172321214581 == 0.693147180559945286227
True
>>> 0.6931471805599453094172321214581
0.6931471805599453
>>> 0.693147180559945286227
0.6931471805599453

Strictly speaking any of the numbers in your initial message are wrong. It's not possible to express ln2 is a number of finite length. The approximations are usually good enough, though.
History
Date User Action Args
2018-02-06 21:11:57christian.heimessetrecipients: + christian.heimes, mark.dickinson, matanya.stroh
2018-02-06 21:11:57christian.heimessetmessageid: <1517951517.24.0.467229070634.issue32783@psf.upfronthosting.co.za>
2018-02-06 21:11:57christian.heimeslinkissue32783 messages
2018-02-06 21:11:57christian.heimescreate