title: print readable costs from stored decimal
body: <p>Is there a way with PHP to show 2 (or x) decimal places, but not show the .00 if whole number?</p>
  
  <p>I've looked at <a href="http://php.net/manual/en/function.number-format.php" rel="nofollow">number_format</a>, but it doesn't look like it accommodates this exactly.. though I would like the commas every 3 non-decimal places</p>
  
  <pre><code>34.00  =&gt; 34
  34.7   =&gt; 34.70
  12424.9=&gt; 12,424.90
  </code></pre>
  
  <p>My numbers are stored as floats w/ 2 decimal places in the database so I don't necessarily need that</p>