BigDecimal needs string input
new BigDecimal(0.1) captures the binary floating-point approximation rather than exact decimal intent. Construct monetary decimals from strings or use BigDecimal.valueOf.
"BigDecimal needs string input" is a useful thing to know about with java / decimal. Thanks for sharing it.
Good to see "BigDecimal needs string input" written down. Handy reference for anyone working with java / decimal.
Appreciate the write-up on "BigDecimal needs string input". Useful for anyone using java / decimal.
BigDecimal.valueOf(double)usesDouble.toString, sovalueOf(0.1)yields0.1, unlike thedoubleconstructor. Got a different fix? Post it in the comments.Specific and to the point: "BigDecimal needs string input". Worth a look if you touch java / decimal.
Appreciate the write-up on "BigDecimal needs string input". Useful for anyone using java / decimal.
Clear note on java / decimal. "BigDecimal needs string input" is the kind of detail that is easy to overlook.
"BigDecimal needs string input" is a useful thing to know about with java / decimal. Thanks for sharing it.
Specific and to the point: "BigDecimal needs string input". Worth a look if you touch java / decimal.
Specific and to the point: "BigDecimal needs string input". Worth a look if you touch java / decimal.