Lets assume we have one million.
In English it should be formatted as 1,000,000 in German it should be 1.000.000.
1,000,000
1.000.000
Using NumberFormat class:
For English:
NumberFormat nf_us = NumberFormat.getInstance(Locale.US); String number_us = nf_us.format(1000000);
For German:
NumberFormat nf_ge = NumberFormat.getInstance(Locale.GERMAN); String number_ge = nf_ge.format(1000000);
1.4m articles
1.4m replys
5 comments
57.0k users