how-to

Internationalization

How to get decimal separator

For getting active decimal separator use java.text.DecimalFormat.

DecimalFormat f = new DecimalFormat();
DecimalFormatSymbols s = f.getDecimalFormatSymbols();

System.out.println( s.getDecimalSeparator() );

You can use method DecimalFormat.setDecimalSeparator() to set decimal sepator to new other char.