[Numpy-discussion] np.longlong casts to int
Wed Feb 22 16:47:46 CST 2012
I was gaily using np.longlong for casting to the highest available
float type when I noticed this:
In : np.array([2.1], dtype=np.longlong)
Out: array(, dtype=int64)
In : np.array([2.1], dtype=np.float128)
Out: array([ 2.1], dtype=float128)
This on OSX snow leopard numpies 1.2 .1 -> current devel and OSX tiger
PPC recent devel.
I had the impression that np.float128 and np.longlong would be
identical in behavior - but I guess not?
More information about the NumPy-Discussion