Skip to content
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

NumPy float arange() example no longer illustrates the problem #565

Open
hroncok opened this issue Oct 31, 2019 · 0 comments
Open

NumPy float arange() example no longer illustrates the problem #565

hroncok opened this issue Oct 31, 2019 · 0 comments

Comments

@hroncok
Copy link
Member

hroncok commented Oct 31, 2019

Our example is:

>>> numpy.arange(0.0, 50.0, 0.3)[-1]
49.799999999999997

But this gives the following with current Python and NumPy:

>>> numpy.arange(0.0, 50.0, 0.3)[-1]
49.8
@hroncok hroncok changed the title NumPy float arange example no longer shows the problem NumPy float arange() example no longer illustrates the problem Oct 31, 2019
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

1 participant