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 mark.dickinson, serhiy.storchaka, steven.daprano, yudongliu
Date 2019-11-06.13:08:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1573045732.55.0.166942081915.issue38703@roundup.psfhosted.org>
In-reply-to
Content
[Steven]

py> '%.17f' % 0.95
'0.94999999999999996'

That's tricky to use correctly: it's not a priori clear how many digits after the point are needed to give you a faithful representation (the "17" in "%.17f" isn't going to be the right thing for most values). You really want to specify the number of significant digits rather than the number of places after the point, and even then there are going to be cases where 17 significant digits aren't enough to show you which side of a tie the exact value lies.
History
Date User Action Args
2019-11-06 13:08:52mark.dickinsonsetrecipients: + mark.dickinson, steven.daprano, serhiy.storchaka, yudongliu
2019-11-06 13:08:52mark.dickinsonsetmessageid: <1573045732.55.0.166942081915.issue38703@roundup.psfhosted.org>
2019-11-06 13:08:52mark.dickinsonlinkissue38703 messages
2019-11-06 13:08:52mark.dickinsoncreate