I am chiming in to agree with Stephen. About a year ago, I encountered the same issue and was extremely dissatisfied with the behavior. I was forced to create a utility method to check for "0" before passing it onto stripTrailingZeros(). The current behavior is useless; the spec is clear stripping extra zeros means exactly that.
- Re: RFR - 6480539: BigDecimal.stripTra... Paul Sandoz
- Re: RFR - 6480539: BigDecimal.str... Stephen Colebourne
- Re: RFR - 6480539: BigDecimal... Bruce Chapman
- Re: RFR - 6480539: BigDecimal... Stephen Colebourne
- Re: RFR - 6480539: BigDecimal... Joe Darcy
- Re: RFR - 6480539: BigDecimal... Stephen Colebourne
- Re: RFR - 6480539: BigDecimal... Joe Darcy
- Re: RFR - 6480539: BigDecimal... Stephen Colebourne
- Re: RFR - 6480539: BigDecimal... Bruce Chapman
- Re: RFR - 6480539: BigDecimal... Brian Burkhalter
- RFR - 6480539: BigDecimal.stripTrailingZeros() should s... Paul Benedict