title: Negative sign in case of zero in java
body: <p>Is there any way to truncate the negative sign when the result returns zero; while using decimal format?</p>
  
  <pre><code>DecimalFormat df = new DecimalFormat("#,##0.0");
  df.setRoundingMode(RoundingMode.HALF_UP);
  formattedValue = df.format("-0.023");
  </code></pre>
  
  <p>The above code returns -0.0 . Is there any way by which it will return only 0.0? However, I want to retain the negative sign when the result is a negative number.</p>