-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
numpy.arange miscounts when step is large relative to value past stop #6238
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
Comments
To calculate the number of items, a rounded up division of |
Thanks. I suspected it was some kind of floating point arithmetic at work as well, but couldn't find the source code for that function. Can you point me to it? The doc says when all three are integers it does the same thing as the built-in |
It's written in C. The function that ultimately creates the |
I am getting a (similar?) bug: For example, I get an extra number in this case:
but this works fine:
I'm using numpy version 1.11.2. |
The problem is that
The way to do this sort of thing is to use
|
The text was updated successfully, but these errors were encountered: