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
Rounding #864
Rounding #864
Conversation
fix java codes that fails compile in README.md
|
Thank you @volodya-lombrozo for the pull request. I changed the merge target from master to develop, and I'll merge it after double checking the rounding mode. |
@volodya-lombrozo, I hope you don't mind that I changed RoundingMode to DOWN for consistency with server. Also I removed the check for NaN and Infinite because BigDecimal does not support them. I'm going to release patch7 24 hours later - let me know if you have any concern for the changes. |
Just trying to make it consistency with server side implementation - see here.
It's legacy driver and it will be removed in 0.4.0 so I didn't change the logic this time.
Yes. I thought about adding new default into |
Thank you for your answer. Now it's clear. |
I have faced with a problem of getting BigDecimal values from ResultSet:
For example you can set the avg value = 1.333334 to a cloumn
`abg` Float64
And when you will try to get it you will have the next exception:
I added
RoundingMode
in order to handle decimal values