title: Java 8: DecimalFormat with HALF_UP rounding mode
body: <p>The following test fails:</p>
  
  <pre class="lang-java prettyprint-override"><code>@Test
  public void testRound() throws Exception {
      double v = 0.015d;
      DecimalFormat format = new DecimalFormat("#.##", new DecimalFormatSymbols(Locale.US));
      format.setRoundingMode(RoundingMode.HALF_UP);
      assertEquals("0.02", format.format(v));
  }
  </code></pre>
  
  <p>I see that there are resolved issues for <a href="http://bugs.java.com/bugdatabase/view_bug.do?bug_id=7131459" rel="nofollow noreferrer">Java 7</a> and <a href="http://bugs.java.com/view_bug.do?bug_id=8062756" rel="nofollow noreferrer">Java 8</a>, but it still doesn't work for me on "jdk1.8.0_144":</p>
  
  <pre><code>junit.framework.ComparisonFailure: null 
  Expected :0.02
  Actual   :0.01 
  </code></pre>