[Numpy-discussion] round(numpy.float64(0.0)) is a numpy.float64
Nathan Goldbaum
nathan12343 at gmail.com
Thu Mar 22 15:32:57 EDT 2018
numpy.float is an alias to the python float builtin.
https://github.com/numpy/numpy/issues/3998
On Thu, Mar 22, 2018 at 2:26 PM Olivier <oc-spam66 at laposte.net> wrote:
> Hello,
>
>
> Is it normal, expected and desired that :
>
>
> round(numpy.float64(0.0)) is a numpy.float64
>
>
> while
>
> round(numpy.float(0.0)) is an integer?
>
>
> I find it disturbing and misleading. What do you think? Has it already been
> discussed somewhere else?
>
>
> Best regards,
>
>
> Olivier
>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at python.org
> https://mail.python.org/mailman/listinfo/numpy-discussion
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20180322/f5db5c1e/attachment.html>
More information about the NumPy-Discussion
mailing list