title: DecimalFormat "Multiple decimal separators in pattern"
body: <p>I want to format decimal values as a currency value: 1234.56d should become "1.234,56" (this format is used in some European countries).
  I'm using the following pattern to format decimal values: </p>
  
  <pre><code>final DecimalFormat df = new DecimalFormat("###.###.###,00");
  final String formatted = df.format(1234.56d);
  System.out.println(formatted);
  </code></pre>
  
  <p>In fact I'm using <a href="http://supercsv.sourceforge.net" rel="nofollow">SuperCSV</a>'s class <a href="http://supercsv.sourceforge.net/apidocs/org/supercsv/cellprocessor/FmtNumber.html#FmtNumber%28java.lang.String%29" rel="nofollow">FmtNumber</a>, but that doesn't matter, because the pattern syntax is the same: new FmtNumber("###.###.###,00");</p>
  
  <p>What I get is an IllegalArgumentException with the message "Multiple decimal separators in pattern".</p>
  
  <p>I understand that there can be only one decimal separator. But in my case it should be the sign ",". And "," appears only one time in my pattern.</p>
  
  <p>I searched the Web and StackOverflow for this exception message, but I found no helpful answers.</p>
  
  <p>What's my error?</p>