]> granicus.if.org Git - icu/commit
ICU-5938 Fix inaccurate output on RBNF demo sample
authorRobert Melo <robertgm@motorola.com>
Tue, 7 Apr 2020 00:42:00 +0000 (21:42 -0300)
committerSteven R. Loomis <srl295@gmail.com>
Wed, 8 Apr 2020 20:50:31 +0000 (13:50 -0700)
commit06da8bebfeb606ae26305dd8701a2fa59c97704f
tree4824ec5c5e1f739062fb1989666776e922f93db7
parent19992b3ed092b77a7d4b06a92e3e81bddb1c6749
ICU-5938 Fix inaccurate output on RBNF demo sample

- Replace the attribute type of the attribute from double to
BigDecimal in order to format a number by using RBNF rules
without rounding error issues.

- A modification on < and > buttons (multiply/divide by 10)
to also fix rounding error issues.
icu4j/demos/src/com/ibm/icu/dev/demo/rbnf/RbnfDemo.java