Skip to content

Numpy uint64 added to Python int yields float #8986

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
vlasenkov opened this issue Apr 25, 2017 · 1 comment
Closed

Numpy uint64 added to Python int yields float #8986

vlasenkov opened this issue Apr 25, 2017 · 1 comment

Comments

@vlasenkov
Copy link

Python 3.5.2
Numpy 1.12.0

>>> np.uint64(13) + 4
17.0

Is it ok? Probably getting an int would be better.

@eric-wieser
Copy link
Member

eric-wieser commented Apr 25, 2017

By design, unfortunately (for now) - see #5745, #8522, #7126

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

No branches or pull requests

2 participants