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 eric.smith
Recipients atuccia, eric.smith
Date 2020-10-25.17:28:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1603646929.17.0.817707854672.issue42148@roundup.psfhosted.org>
In-reply-to
Content
This isn't a bug. It's due to the base 2 representation of floating point numbers. See for example: See https://docs.python.org/3/tutorial/floatingpoint.html

It's possible, depending on your use case, you might want to use the decimal module. But that has it's own issues that you should be aware of. For example, 1/7 is not exactly representable in either floats or Decimals.
History
Date User Action Args
2020-10-25 17:28:49eric.smithsetrecipients: + eric.smith, atuccia
2020-10-25 17:28:49eric.smithsetmessageid: <1603646929.17.0.817707854672.issue42148@roundup.psfhosted.org>
2020-10-25 17:28:49eric.smithlinkissue42148 messages
2020-10-25 17:28:49eric.smithcreate