Hi,

I noticed this:

(Intel Mac):

In [2]: np.int32(np.float32(2**31))
Out[2]: -2147483648

(PPC):

In [3]: np.int32(np.float32(2**31))
Out[3]: 2147483647

I assume what is happening is that the casting is handing off to the c
library, and that behavior of the c library differs on these
platforms?  Should we expect or hope that this behavior would be the
same across platforms?

Thanks for any pointers,

Matthew
_______________________________________________
NumPy-Discussion mailing list
[email protected]
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to