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
Thanks for this library - happy user for years.
Discovered something today unexpected:
a := decimal.NewFromFloat(-35.0) fmt.Println(a.DivRound(decimal.NewFromFloat(5.0)) 7
This is different from Go's default behaviour:
fmt.Println(-35.0 / 5) -7.0
Am I missing something? This seems fundamentally incorrect behaviour.
Is there a way divide and preserve sign?
Cheers Paul
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Thanks for this library - happy user for years.
Discovered something today unexpected:
This is different from Go's default behaviour:
Am I missing something? This seems fundamentally incorrect behaviour.
Is there a way divide and preserve sign?
Cheers
Paul
The text was updated successfully, but these errors were encountered: