We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
a := decimal.RequireFromString("0.499999999999999999") b := decimal.RequireFromString("0.25") fmt.Println(a.Mod(b))
prints -0.000000000000000001.
-0.000000000000000001
It should never be possible for the number to become negative.
The text was updated successfully, but these errors were encountered:
Thanks for spotting that bug! I will take a look. :)
Sorry, something went wrong.
issue shopspring#210: bug: a.Mod(b) returns a negative number - Solved
f95131c
Completly forgot about this issue. This bug has been fixed twice in #258 and #317 :D
No branches or pull requests
prints
-0.000000000000000001
.It should never be possible for the number to become negative.
The text was updated successfully, but these errors were encountered: