title: .toFixed not for .0*
body: <p>I have a few values:</p>
  
  <pre><code>var one = 1.0000
  var two = 1.1000
  var three = 1.1200
  var four = 1.1230
  </code></pre>
  
  <p>and function:</p>
  
  <pre><code>function tofixed(val)
  {
     return val.toFixed(2);
  }
  </code></pre>
  
  <p>this return:</p>
  
  <pre><code>1.00
  1.10
  1.12
  1.12 
  </code></pre>
  
  <p><a href="http://jsfiddle.net/y5nEu/" rel="noreferrer">LIVE</a></p>
  
  <p>I want maximum size after dot - 2, but only if numbers after for != 0.
  So i would like receive:</p>
  
  <pre><code>1
  1.1
  1.12
  1.12 
  </code></pre>
  
  <p>How can i make it?</p>