title: Java decimal format wrong formatting
body: <p>Code is:</p>
  
  <pre><code>private static DecimalFormat amDF=new DecimalFormat("###,###,###,##0.00");
  amDF.setDecimalFormatSymbols(dfs); &lt;- this only sets decimal separator, it works fine
  amDF.setMinimumFractionDigits(2);
  amDF.setMaximumFractionDigits(2);
  </code></pre>
  
  <p>before formating value is 210103.6 and after formatting it should be like: 210.103,60, not 210.103,59.</p>
  
  <p>Why do i lose 0.01 ?</p>
  
  <p>EDIT #1: number is instance of class Float number</p>
  
  <p>EDIT #2: numberOfDecimals = 2</p>
  
  <p><img src="https://i.stack.imgur.com/HUIvl.jpg" alt="enter image description here"></p>