title: How to print formatted BigDecimal values?
body: <p>I have a <code>BigDecimal</code> field <code>amount</code> which represents money, and I need to print its value in the browser in a format like <code>$123.00</code>, <code>$15.50</code>, <code>$0.33</code>.</p>
  
  <p>How can I do that?</p>
  
  <p>(The only simple solution which I see myself is getting <code>floatValue</code> from <code>BigDecimal</code> and then using <code>NumberFormat</code> to make two-digit precision for the fraction part).</p>