In [1]: import numpy as np
In [2]: np.float64(12)
Out[2]: 12.0
In [3]: np.float64(12).dtype
Out[3]: dtype('float64')
On Thu, May 10, 2018 at 9:49 PM Hameer Abbasi <[email protected]>
wrote:
> Hello, everyone!
>
> I might be missing something and this might be a very stupid and redundant
> question, but is there a way to cast a scalar to a given dtype?
>
> Hameer
>
>
> _______________________________________________
> NumPy-Discussion mailing list
> [email protected]
> https://mail.python.org/mailman/listinfo/numpy-discussion
>
_______________________________________________
NumPy-Discussion mailing list
[email protected]
https://mail.python.org/mailman/listinfo/numpy-discussion