Tunisia Dots As Thousand Separator
Posted on -
As mentioned above, the following gives you the specific country code to allow Java to localize the number. Every country has its own style.In the link above you will find the country code which should be placed in here.(new Locale);Switzerland for example formats the numbers as follows:1000.00 - 1'000.00To achieve this, following codes works for me: NumberFormat nf = NumberFormat.getNumberInstance(new Locale('de','CH'));nf.setMaximumFractionDigits(2);DecimalFormat df = (DecimalFormat)nf;System.out.println(df.format(1000.00));Result is as expected: 1'000.00.
- Decimal separator: – English (as well as most Asian languages) uses a decimal dot, and a comma to separate thousands – All other European languages use a decimal comma, (with a couple of exceptions such as Mexican Spanish).
- I'm writing from Spain. I'm having problems with decimal separator and thousand separator. Here in Spain, decimal separator is a comma and thousand separator is a point. But PowerBi goes wrong, (decimal separator = point and thousand separator = comma). The regional configurator is correct.
Tunisia Dots As Thousand Separator Paper
This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources.Unsourced material may be challenged and removed.