-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Potential Bug in mod()
#3011
Potential Bug in mod()
#3011
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @praisennamonu1 for your PR fixing the rounding issues with mod
.
I made a few inline comments, can you have a look at those?
used mathjs floor in mod.js imported mod in gcd.js made mod work for negative divisors wrote and updated tests to validate new behavior
Hi @josdejong |
Nice 😎! This is a very elegant solution. You've resolved my remark about I have one last remark: you have now extended |
Thanks! I've made changes to the I will look into the |
Ah, you're right, the Please let me know if you need help. |
Been a while, but I've added the tests for the function in the new file. Could you check that out? |
Thanks for the updates @praisennamonu1 , this looks good and well tested👌 I see mentioned putting the new unit tests under |
…ove redundant tests (see #3011)
The fix is published now in |
To solve issue #2936 raised and based on these requirements written by @josdejong, I've made changes to
mod.js
andgcd.js
files andBigNumber
implementation.I've also added test cases to validate the new behaviour