[issue23185] add inf and nan to math module

Mark Dickinson report at bugs.python.org
Wed Jan 7 17:58:50 CET 2015


Mark Dickinson added the comment:

> float("-inf") and -float("inf") have exactly the same IEEE 754 representation

Indeed: there's only one negative infinity (and only one positive infinity) in IEEE 754 binary64 format.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23185>
_______________________________________


More information about the Python-bugs-list mailing list