RFR - 6480539: BigDecimal.stripTrailingZeros() should specify no-op on zero BigDecimals

Paul Benedict pbenedict at apache.org
Thu Feb 7 15:15:36 UTC 2013


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.



More information about the core-libs-dev mailing list