[Numpy-discussion] np.longlong casts to int
Matthew Brett
matthew.brett@gmail....
Wed Feb 22 19:24:39 CST 2012
2012/2/22 Stéfan van der Walt <stefan@sun.ac.za>:
> 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)
A thinko maybe.
Luckily I was in fact using longdouble in the live code,
See you,
Matthew
More information about the NumPy-Discussion
mailing list