1. Clarification on behavior of BigDecimal.stripTrailingZeroes() stackoverflow.comWhy the following code prints
The following is the documentation for stripTrailingZeroes:
Returns BigDecimal which is numerically equal to this one but with ... |
2. Bug in BigDecimal.stripTrailingZeroes()? forums.oracle.comI've noticed that the stripTrailingZeroes() method of BigDecimal has no effect if the value is zero. I had a number with a value of "0.000000000", and I expected to get just "0" back, but the number I got back was the same as the number I started with. It works fine with any other number, just not zero itself. I can't ... |