Mark Dickinson <dicki...@gmail.com> added the comment:

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?

----------
nosy: +mark.dickinson
resolution:  -> not a bug
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue46444>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to