Message411011
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? |
|
Date |
User |
Action |
Args |
2022-01-20 08:10:48 | mark.dickinson | set | recipients:
+ mark.dickinson, serhiy.storchaka, darshan.kanade |
2022-01-20 08:10:48 | mark.dickinson | set | messageid: <1642666248.1.0.664772545942.issue46444@roundup.psfhosted.org> |
2022-01-20 08:10:48 | mark.dickinson | link | issue46444 messages |
2022-01-20 08:10:47 | mark.dickinson | create | |
|