New GitHub issue #94621 from randolf-scholz:<br>

<hr>

<pre>
[IEEE Standard for Binary Floating-Point Arithmetic](https://ieeexplore.ieee.org/document/30711) recommends that `logb(0)` should return negative infinity. (cf. Annex A Recommended Functions and Predicates). In Python however, we currently (3.10.5) have:

- `math.log(0)` raises `ValueError`

On the other hand, `math.log(math.inf)` returns `math.inf`. It seems weird and arbitrary to support this limit case but not the other.
</pre>

<hr>

<a href="https://github.com/python/cpython/issues/94621">View on GitHub</a>
<p>Labels: type-bug</p>
<p>Assignee: </p>