<i18n dev> Integrated: 8262744: Formatter '%g' conversion uses wrong format for BigDecimal rounding up to limits

Ian Graves igraves at openjdk.java.net
Fri Apr 16 20:08:39 UTC 2021


On Tue, 6 Apr 2021 20:34:52 GMT, Ian Graves <igraves at openjdk.org> wrote:

> This fixes a bug where the formatting code for `%g` flags incorrectly tries to round `BigDecimal` after determining whether it should be a decimal numeric format or a scientific numeric format. The solution rounds before determining the correct format.

This pull request has now been integrated.

Changeset: 0bdc3e7a
Author:    Ian Graves <igraves at openjdk.org>
Committer: Roger Riggs <rriggs at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/0bdc3e7a
Stats:     66 lines in 2 files changed: 62 ins; 1 del; 3 mod

8262744: Formatter '%g' conversion uses wrong format for BigDecimal rounding up to limits

Reviewed-by: rriggs, bpb

-------------

PR: https://git.openjdk.java.net/jdk/pull/3363


More information about the i18n-dev mailing list