6480539: BigDecimal.stripTrailingZeros() has no effect on zero itself ("0.0")
Summary: Make stripTrailingZeros() return BigDecimal.ZERO if the BigDecimal is numerically equal to zero.
Reviewed-by: darcy
Contributed-by: Brian Burkhalter <brian.burkhalter@oracle.com>
6178739: (fmt) Formatter.format("%0.4f\n", 56789.456789) generates MissingFormatWidthException
Summary: Change the field width specification to require a positive value. The exception is still thrown but that is now explicitly consistent with the specification.
Reviewed-by: darcy
Contributed-by: Brian Burkhalter <brian.burkhalter@oracle.com>