Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add binary prefix units #449

Open
sffc opened this issue Jun 2, 2020 · 6 comments
Open

Add binary prefix units #449

sffc opened this issue Jun 2, 2020 · 6 comments
Labels
c: numbers Component: numbers, currency, units new unit Request for a new unit in Intl.NumberFormat s: blocked Status: the issue is blocked on upstream Small Smaller change solvable in a Pull Request

Comments

@sffc
Copy link
Contributor

sffc commented Jun 2, 2020

Binary units such as KiB and MiB reduce ambiguity associated with kB and MB. We have received numerous requests to add them to ECMA-402. This is currently blocked by upstream CLDR not having locale data for these units.

Upstream ticket:

https://unicode-org.atlassian.net/browse/CLDR-13848

Relevant CLDR discussions:

User requests:

@mathiasbynens @markusicu @macchiati

@sffc sffc added c: numbers Component: numbers, currency, units s: blocked Status: the issue is blocked on upstream labels Jun 2, 2020
@macchiati
Copy link

macchiati commented Jun 2, 2020 via email

@macchiati
Copy link

macchiati commented Jun 2, 2020 via email

@macchiati
Copy link

macchiati commented Jun 2, 2020 via email

@sffc sffc added the Small Smaller change solvable in a Pull Request label Jun 5, 2020
@ByteEater-pl
Copy link

yobe{0}

should be yobi

@macchiati
Copy link

macchiati commented Jun 19, 2020 via email

@connorjclark
Copy link

connorjclark commented Apr 6, 2022

CLDR now contains strings for the binary prefixes:

https://github.com/unicode-org/cldr/blob/main/common/main/en.xml#L6128

https://github.com/unicode-org/cldr/blob/main/common/main/ar.xml#L10572

I had expected to see shorthand units like "KiB":

image

source: https://en.wikipedia.org/wiki/Kilobyte

But it seems kibibyte and friends only have a "long" string specified.

But perhaps that'd need to be a digital-kibibyte unit in CLDR?

@sffc sffc added the new unit Request for a new unit in Intl.NumberFormat label Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: numbers Component: numbers, currency, units new unit Request for a new unit in Intl.NumberFormat s: blocked Status: the issue is blocked on upstream Small Smaller change solvable in a Pull Request
Projects
None yet
Development

No branches or pull requests

4 participants