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 rhettinger
Recipients johngholman, rhettinger
Date 2022-01-04.18:17:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1641320238.41.0.431350128005.issue46259@roundup.psfhosted.org>
In-reply-to
Content
The two numbers you gave become the same when rounded to the limited internal precision used by floats.

>>> 10000.12345678901234 == 10000.123456789011
True

When it comes to displaying the number, Python tries to show the shortest possible member of the equivalence class.
History
Date User Action Args
2022-01-04 18:17:18rhettingersetrecipients: + rhettinger, johngholman
2022-01-04 18:17:18rhettingersetmessageid: <1641320238.41.0.431350128005.issue46259@roundup.psfhosted.org>
2022-01-04 18:17:18rhettingerlinkissue46259 messages
2022-01-04 18:17:18rhettingercreate