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
Based on the Java documentation, my expectation is that these two lines would result in the same value:
new BigDecimal(0.615000001).setScale(2, BigDecimal.ROUND_HALF_UP).toString() // => "0.62" new BigDecimal(0.615).setScale(2, BigDecimal.ROUND_HALF_UP).toString() // => "0.61"
The text was updated successfully, but these errors were encountered:
Apparently I should be passing in a string, otherwise it's already a floating point number.
new BigDecimal("0.615").setScale(2, BigDecimal.ROUND_HALF_UP).toString() // => "0.62"
It might help to stress this in the README for people like me. :-)
Sorry, something went wrong.
No branches or pull requests
Based on the Java documentation, my expectation is that these two lines would result in the same value:
The text was updated successfully, but these errors were encountered: