Compact Decimal Format
See original GitHub issue👋 I worked on a solution a few months ago to add short number formatting to a library similar to this and have this working in some applications.
https://github.com/snewcomer/cldr-compact-number
I’m not familiar with the internals of this library so I wanted to float the idea by you if you thought it might be a good addition.
Convert numbers like -
101234
to101,1
mil in Espanol101234
to10.1万
in Japanese
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
CompactDecimalFormat | Android Developers
The CompactDecimalFormat produces abbreviated numbers, suitable for display in environments will limited real estate. For example, 'Hits: 1.2B' instead of ...
Read more >Compact Number Formatting in Java
Compact number formatting refers to the representation of a number in a shorter form based on the patterns provided for a given locale....
Read more >CompactDecimalFormat (ICU4J 72.1)
The CompactDecimalFormat produces abbreviated numbers, suitable for display in environments will limited real estate. For example, 'Hits: 1.2B' instead of ...
Read more >Can CompactDecimalFormat somehow be used to format ...
I'm trying to use ICU4J's CompactDecimalFormat to format values like "12345.67" into "$12K". I can't seem to see how to include the currency...
Read more >[Proposal] Compact Decimal Format to abbreviate large ...
[Proposal] Compact Decimal Format to abbreviate large numbers #37. Closed. caridy opened this issue on Sep 18, 2015 · 12 comments.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@eemeli Perfect! Yeah I’ve been tracking the work that has gone in! 👍 Hopefully within the next month I’ll be able to work on this.
This issue has languished here for ages, but with #313 it should finally become easy to provide a solution for this. As a first-pass solution, something like this seems to work:
When compiled, that produces this bundle:
And that, when executed, prints out this: