[Python-ideas] What math.floor(inf) should return? Was: Make `float('inf') //1 == float('inf')`

Alexander Belopolsky alexander.belopolsky at gmail.com
Fri Sep 19 05:20:00 CEST 2014


On Thu, Sep 18, 2014 at 11:16 PM, Case Van Horsen <casevh at gmail.com> wrote:

> 2) Add an alternate math library, say stdmath, (or ieeemath or...)
>

.. or numpy :-)


> that can follow a different set of rules than the math module. In
> addition to the functions provided by the math module, it could
> define additional functions such as stdmath.div such that
> stdmath.div(2.0, 0) return Inf instead of raising an exception.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20140918/ea89df02/attachment.html>


More information about the Python-ideas mailing list