Last active
December 23, 2021 20:18
-
-
Save agiri23/f4150958a7cceb883b8b33eba0985920 to your computer and use it in GitHub Desktop.
compact number format long
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 numberFormatLong = NumberFormat | |
.getCompactNumberInstance(Locale.forLanguageTag("NL"), NumberFormat.Style.LONG); | |
System.out.println(numberFormatLong.format(2000)); | |
System.out.println(numberFormatLong.format(20000)); | |
System.out.println(numberFormatLong.format(200000)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment