]> granicus.if.org Git - icu/commit
ICU-20058 Fix mimimum significant digits in engineering notation
authorVictor Chang <vichang@google.com>
Fri, 14 Sep 2018 13:24:05 +0000 (14:24 +0100)
committerShane Carr <shane@unicode.org>
Thu, 27 Sep 2018 21:27:40 +0000 (14:27 -0700)
commitb62200061c217689bab56482d71334b4e81ab0bf
treefed370cd93fe4da1222433261bfbf200e8d66fa5
parentcc5bf22a0cfe2d8ad36eb848f2f3c44b5dc00bc6
ICU-20058 Fix mimimum significant digits in engineering notation

- Follow the spec to calculate the mimimum significant digits in engineering notation
- The bug is regression since ICU 58. The new test still passes on
ICU58-based DecimalFormat
- Maximum significant digits is not changed
icu4c/source/i18n/number_mapper.cpp
icu4c/source/test/testdata/numberformattestspecification.txt
icu4j/main/classes/core/src/com/ibm/icu/number/NumberPropertyMapper.java
icu4j/main/tests/core/src/com/ibm/icu/dev/data/numberformattestspecification.txt