title: Java DecimalFormat rounding down
body: <p>I am using DecimalFormatter to read in formatted decimal string values and convert them to float. However, when I run:</p>
  
  <pre><code>    DecimalFormat formatter = new DecimalFormat("####,####.00");
      String floatStr = "177,687.71";
      float val1 = formatter.parse(floatStr).floatValue();
      System.out.println(val1);
  </code></pre>
  
  <p>...I get 177678.7 instead of 177678.71. Why is this? How do I avoid rounding the hundredths place?</p>
  
  <p>Thanks!</p>