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 tim.peters
Recipients christian.heimes, mark.dickinson, matanya.stroh, steven.daprano, tim.peters
Date 2018-02-07.03:01:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1517972508.0.0.467229070634.issue32783@psf.upfronthosting.co.za>
In-reply-to
Content
As I mentioned on StackOverflow, the literal in question appears to have been crafted to convert to the best possible 53-bit binary approximation to log(2) regardless of whether a compiler converts it to double precision (53 bits of precision) or to "double extended" (64 bits of precision).  In the latter case, the literal is such that the "extra" trailing 11 bits are all zeroes.

Since I doubt that's a potential issue anymore, even trying to document it would be confusing too ;-)

So while I'll defer to Mark, I'm inclined to just close this as "not a bug".  Math libraries typically bristle with code that's baffling to the uninitiated, and comments about things that don't matter can get in the way.  The only thing a libm developer cares about here is whether or not the literal converts to the best double approximation to log(2) - and it does.
History
Date User Action Args
2018-02-07 03:01:48tim.peterssetrecipients: + tim.peters, mark.dickinson, christian.heimes, steven.daprano, matanya.stroh
2018-02-07 03:01:47tim.peterssetmessageid: <1517972508.0.0.467229070634.issue32783@psf.upfronthosting.co.za>
2018-02-07 03:01:47tim.peterslinkissue32783 messages
2018-02-07 03:01:47tim.peterscreate