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 darshan.kanade, mark.dickinson, serhiy.storchaka
Date 2022-01-20.08:10:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1642666248.1.0.664772545942.issue46444@roundup.psfhosted.org>
In-reply-to
Content
Hi Darshan. This isn't a bug in Python. You're running into the limitations of floating-point arithmetic.

There's a lot of good material on those limitations available on the web, starting with Python's own tutorial: https://docs.python.org/3/tutorial/floatingpoint.html

If you want to understand what's going on in this particular case, take a closer look at the values of 90 - 180/k when k=2**62 and k=2**63, say. Are they the same? Should they be? Why / why not?
History
Date User Action Args
2022-01-20 08:10:48mark.dickinsonsetrecipients: + mark.dickinson, serhiy.storchaka, darshan.kanade
2022-01-20 08:10:48mark.dickinsonsetmessageid: <1642666248.1.0.664772545942.issue46444@roundup.psfhosted.org>
2022-01-20 08:10:48mark.dickinsonlinkissue46444 messages
2022-01-20 08:10:47mark.dickinsoncreate