[Numpy-discussion] np.longlong casts to int

Stéfan van der Walt stefan@sun.ac...
Wed Feb 22 19:21:34 CST 2012


On Wed, Feb 22, 2012 at 2:47 PM, Matthew Brett <matthew.brett@gmail.com> wrote:
> In [4]: np.array([2.1], dtype=np.longlong)
> Out[4]: array([2], dtype=int64)

Maybe just a typo:

In [3]: np.array([2.1], dtype=np.longfloat)
Out[3]: array([ 2.1], dtype=float128)

Stéfan


More information about the NumPy-Discussion mailing list