Add support for IEC binary prefixes to MeasureUnit (kibi-, mebi-, etc)

Description

Follows on the work of CLDR-13848.

Activity

Show:
Carsten Hagemann
April 10, 2021, 1:06 PM

Hello there, trying this out right now. Does your comment mean that only basically the “text” can be prefixed currently, but there is no unit conversion done when formatting?

I expected this code to output “3 TW”, but it outputs “3.000.000.000.000 TW”:

In this case I wanted to try to format specifically TW (so I can’t usage .usage etc). Also, I am missing documentation on this in general (on the icu4j 69.1 download page, other documentation areas like https://unicode-org.github.io/icu/userguide/format_parse/numbers/). Should I create a new ticket for this?

Hugo van der Merwe
February 2, 2021, 11:50 PM

(This covers just MeasureUnit, not unit formatting too.)

Fixed

Assignee

Hugo van der Merwe

Reporter

Hugo van der Merwe

Components

Labels

None

Reviewer

Shane Carr

Priority

medium

Time Needed

None

Fix versions