[Numpy-discussion] uint64 typecasting with scalars broken (?)
Christian Marquardt
christian@marquardt...
Sun Apr 22 16:19:42 CDT 2007
Hello,
The following is what I expected...
>>> y = 1234
>>> x = array([1], dtype = "uint64")
>>> print x + y, (x + y).dtype.type
[1235] <type 'numpy.uint64'>
but is this the way it should be? (numpy 1.0.2, Linux, Intel comilers)
>>> print x[0] + y, type(x[0] + y)
1235.0 <type 'numpy.float64'>
Thanks,
Christian.
More information about the Numpy-discussion
mailing list