title: How to format decimals in a currency format?
body: <p>Is there a way to format a decimal as following:</p>
  
  <pre><code>100   -&gt; "100"  
  100.1 -&gt; "100.10"
  </code></pre>
  
  <p>If it is a round number, omit the decimal part. Otherwise format with two decimal places.</p>