[issue15107] Potential Bug in mpdecimal.c

Mark Dickinson report at bugs.python.org
Tue Jun 19 18:20:08 CEST 2012


Mark Dickinson <dickinsm at gmail.com> added the comment:

> That would probably be because exp(-infinity) is 0, which isn't a
> floating-point special value, and ln(-infinity) is NaN, which is.

Actually, looking at the code, mpd_setspecial is called under exactly the same circumstances (namely for +inf) in *both* cases; for -inf, the exp code calls _settriple, while the ln code calls mpd_seterror.

----------

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


More information about the Python-bugs-list mailing list