[Numpy-discussion] strange casting rules

Neal Becker ndbecker2 at gmail.com
Wed Jul 29 08:07:08 EDT 2015


np.uint64(-1)+0
Out[36]: 1.8446744073709552e+19

I often work on signal processing requiring bit-exact integral arithmetic.  
Promoting to float is not helpful - I don't understand the logic of the 
above example.




More information about the NumPy-Discussion mailing list