On Wed, 9 Feb 2022 22:37:45 GMT, Naoto Sato <na...@openjdk.org> wrote:
> Fixing an issue in `CompactNumberFormat` which was caused by > BigDecimal.divide() that incremented the number in the resulting format > string. Also fixing some typos by taking this opportunity. Marked as reviewed by joehw (Reviewer). test/jdk/java/text/Format/CompactNumberFormat/TestCompactPatternsValidity.java line 106: > 104: {COMPACT_PATTERN8, List.of(new > BigInteger("223565686837667632"), new BigDecimal("12322456774334.89766"), > 30000, 3456.78, > 105: new BigInteger("999999999999"), new > BigDecimal("999999999999.0"), 999_999), > 106: List.of("223566T", "12T", "30K", "3K", "1T", "1T", > "1M")}, The case where 999_999_999 was formatted to 1000 million and now 1 billion may be added too. ------------- PR: https://git.openjdk.java.net/jdk/pull/7412