[Numpy-discussion] Output type of round is inconsistent with python built-in
Robert Kern
robert.kern at gmail.com
Thu Feb 27 09:47:58 EST 2020
On Thu, Feb 27, 2020 at 2:43 AM Ilhan Polat <ilhanpolat at gmail.com> wrote:
> Oh sorry. That's trigger finger np-dotting.
>
> What i mean is if someone was using the round method on float32 or other
> small bit datatypes they would have a silent upcasting.
>
> Maybe not a big problem but can have significant impact.
>
np.round()/np.around() will still exist and behave as you would want it to
in such cases (float32->float32, float64->float64).
--
Robert Kern
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20200227/9ee9ef33/attachment.html>
More information about the NumPy-Discussion
mailing list