title: DecimalFormat doesn't work on android 7
body: <p>I have a method that converts numeric values to a formatted string. It works well, but only on versions less than android 7. On Android 7 and above it is ignored.</p>
  
  <pre><code>public static String printableSumSeparators(double sum, String format) {
      DecimalFormatSymbols dfSymbols = new DecimalFormatSymbols();
      dfSymbols.setDecimalSeparator(COMMA_SEPARATOR);
      dfSymbols.setGroupingSeparator(' ');
      DecimalFormat df = new DecimalFormat(format, dfSymbols);
      df.setGroupingUsed(true);
      return df.format(sum);
  }
  </code></pre>
  
  <p>Where COMMA_SEPARATOR = ',';<br>
  The input of the method is fed with 2 parameters, the number itself for the conversion and the format in the form: ##.0#<br>
  Example:<br>
  Input: 500000<br>
  Output: 500 000<br>
  But on the android 7 it does not work and the number is not formatted<br>
  <strong>Question: How to fix this bug and make it work on the latest version of android</strong></p>