Skip to content

uint64 is "promoted" to float64 when adding an integer #8522

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
NeilGirdhar opened this issue Jan 24, 2017 · 1 comment
Closed

uint64 is "promoted" to float64 when adding an integer #8522

NeilGirdhar opened this issue Jan 24, 2017 · 1 comment

Comments

@NeilGirdhar
Copy link
Contributor

In [8]: a = np.uint64(2)

In [9]: b = a + 1

In [10]: type(b)
Out[10]: numpy.float64

!

@seberg
Copy link
Member

seberg commented Jan 24, 2017

Yes, duplicate of gh-7126 (and probably more). A larger discussion about this is probably better on the mailing list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants