Last active
December 23, 2021 20:17
-
-
Save agiri23/bf40cb993e8c009fb4f5624d1e9b4f4b to your computer and use it in GitHub Desktop.
compact number format short
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NumberFormat numberFormatShort = NumberFormat | |
.getCompactNumberInstance(Locale.forLanguageTag("NL"), NumberFormat.Style.SHORT); | |
System.out.println(numberFormatShort.format(2000)); | |
System.out.println(numberFormatShort.format(20000)); | |
System.out.println(numberFormatShort.format(200000)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment