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 mark.dickinson
Recipients larry, lemburg, mark.dickinson, rhettinger, serhiy.storchaka, stutzbach, vstinner, vxgmichel
Date 2020-02-09.15:17:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1581261438.18.0.877744607165.issue39484@roundup.psfhosted.org>
In-reply-to
Content
> Yes, but you get the first 1 bit for free.

Not really. :-) That's a detail of how floating-point numbers happen to be stored; it's not really relevant here. It doesn't affect the fact that IEEE 754 binary64 floats have 53 bits of *precision*, so using 31 for the integer part leaves only 22 for the fractional part, so we're 8 bits short, not 7.

(If you really want, you can subtract 30 from 52 instead of 31 from 53, but it's just a more complicated way of doing the same calculation, and doesn't change the result.)
History
Date User Action Args
2020-02-09 15:17:18mark.dickinsonsetrecipients: + mark.dickinson, lemburg, rhettinger, vstinner, larry, stutzbach, serhiy.storchaka, vxgmichel
2020-02-09 15:17:18mark.dickinsonsetmessageid: <1581261438.18.0.877744607165.issue39484@roundup.psfhosted.org>
2020-02-09 15:17:18mark.dickinsonlinkissue39484 messages
2020-02-09 15:17:18mark.dickinsoncreate