RFR: 8262744: Formatter '%g' conversion uses wrong format for BigDecimal rounding up to limits [v3]
Ian Graves
igraves at openjdk.java.net
Fri Apr 16 19:50:36 UTC 2021
On Fri, 16 Apr 2021 16:08:53 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.
>
> Ian Graves has updated the pull request incrementally with one additional commit since the last revision:
>
> Inlining some single use variables
That's correct. Passes `java.math` tests. Ran it again, just to be sure.
-------------
PR: https://git.openjdk.java.net/jdk/pull/3363
More information about the core-libs-dev
mailing list