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
QuoRem
With the following code, I would expect a quotient of 1 and a remainder of 0.2. What I actually get is 1 and 2.
1
0.2
2
one := decimal.New(1, 0) original := decimal.New(12, 1) quo := &decimal.Big{} rem := &decimal.Big{} quo.QuoRem(original, one, rem) fmt.Println("QuoRem:", quo, rem)
Calling QuoInt and Rem separately yields the expected result.
QuoInt
Rem
https://go.dev/play/p/7gQD6VoFgp6
The text was updated successfully, but these errors were encountered:
No branches or pull requests
With the following code, I would expect a quotient of
1
and a remainder of0.2
. What I actually get is1
and2
.Calling
QuoInt
andRem
separately yields the expected result.https://go.dev/play/p/7gQD6VoFgp6
The text was updated successfully, but these errors were encountered: