[Numpy-discussion] Possible bug: uint64 + int gives float64

Pearu Peterson pearu.peterson@gmail....
Sun Jun 13 04:08:31 CDT 2010


Hi,
I just noticed some weird behavior in operations with uint64 and int,
heres an example:

>>> numpy.uint64(3)+1
    4.0
>>> type(numpy.uint64(3)+1)
    <type 'numpy.float64'>

Pearu


More information about the NumPy-Discussion mailing list