The Python Oracle

Python Infinity - Any caveats?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Unforgiving Himalayas Looping

--

Chapters
00:00 Question
00:25 Accepted answer (Score 98)
01:23 Answer 2 (Score 105)
07:06 Answer 3 (Score 3)
07:33 Answer 4 (Score 3)
08:23 Thank you

--

Full question
https://stackoverflow.com/questions/1628...

Answer 1 links:
[Python's implementation]: https://docs.python.org/2/library/decima...
[IEEE-754 standard]: http://en.wikipedia.org/wiki/IEEE_754-19...
[platform differences]: http://www.python.org/dev/peps/pep-0754/
["infinity" as well as "inf"]: https://docs.python.org/3.4/library/func...
[neither higher nor lower]: http://compilers.iecc.com/comparch/artic...
[-0.0]: http://en.wikipedia.org/wiki/Signed_zero
[common math sense]: https://math.stackexchange.com/questions...
[covered in the docs]: https://docs.python.org/3.4/library/math...
[math.isnan]: https://docs.python.org/2.7/library/math...
[version 3.2]: https://docs.python.org/3.2/library/func...
[0.0 == -0.0]: https://stackoverflow.com/questions/4083...

Answer 3 links:
https://bugs.python.org/issue32968
[fixed in Python 3.8]: https://bugs.python.org/issue32968#msg32...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #infinity

#avk47