title: Format number to always show 2 decimal places
body: <p>I would like to format my numbers to always display 2 decimal places, rounding where applicable.</p>
  
  <p>Examples:</p>
  
  <pre><code>number     display
  ------     -------
  1          1.00
  1.341      1.34
  1.345      1.35
  </code></pre>
  
  <p>I have been using this: </p>
  
  <pre><code>parseFloat(num).toFixed(2);
  </code></pre>
  
  <p>But it's displaying <code>1</code> as <code>1</code>, rather than <code>1.00</code>.</p>