title: Jasper report decimal format with zero value is giving null
body: <p>We are using jasper report.</p>
  
  <p>And for one of field in report we have set formula, like if value of rate1 field is null then display <strong>"-"</strong> in report otherwise format <code>rate1</code> value such as <strong>##0.0000</strong>.</p>
  
  <blockquote>
    <p>$F{rate1}?new DecimalFormat("##0.0000").format(new
    BigDecimal(""+$F{rate1})):"-"</p>
  </blockquote>
  
  <p>But if value of <code>rate1</code> is 0 then also it is displaying <strong>"-"</strong> instead of <strong>0.0000</strong>
  What can be issue ?</p>