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 cykerway, mark.dickinson, steven.daprano
Date 2021-12-24.17:15:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1640366157.9.0.00740327508204.issue46173@roundup.psfhosted.org>
In-reply-to
Content
If we wanted to make a change, I think the part of the docs that I'd target would be this sentence:

> a floating point number with the same value (within Python’s floating point precision) is returned

It's that "same value (within Python's floating point precision)" bit that I'd consider changing. We could consider replacing it with something along the lines that "an integer argument is rounded to the nearest float", possibly with an additional note that under the assumption of IEEE 754 binary64 format, we follow the usual IEEE 754 rules.
History
Date User Action Args
2021-12-24 17:15:57mark.dickinsonsetrecipients: + mark.dickinson, steven.daprano, cykerway
2021-12-24 17:15:57mark.dickinsonsetmessageid: <1640366157.9.0.00740327508204.issue46173@roundup.psfhosted.org>
2021-12-24 17:15:57mark.dickinsonlinkissue46173 messages
2021-12-24 17:15:57mark.dickinsoncreate