-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
numpy.remainder not working as defined. #7272
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
What version of numpy? On Wed, Feb 17, 2016 at 9:32 PM, jakehanson notifications@github.com
Nathaniel J. Smith -- https://vorpus.org http://vorpus.org |
I'm not sure what it is, that isn't working: >>> np.__version__
'1.10.4'
>>> 0.60 % 0.04
0.039999999999999966
>>> np.remainder(0.60, 0.04)
0.039999999999999966 |
Probably duplicate of gh-7224 |
Hi Pauli, I beleive you're correct. Ideally i would like the remainder to
|
For some reason, numpy.remainder function is not working as defined for the following specific case:
np.remainder(.60,.04) = 0.04
0.60-np.floor(0.60/0.04)*0.04 = 0.00 (Function as defined)
This seems to be the only case for which the definition does not match the function output.
The text was updated successfully, but these errors were encountered: