I need to have 2 symbols after dot
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/149055/how-can-i-format-numbers-as-money-in-javascript">How can I format numbers as money in JavaScript?</a><br>
  <a href="http://stackoverflow.com/questions/6134039/format-number-to-always-show-2-decimal-places">Format number to always show 2 decimal places</a><br>
  <a href="http://stackoverflow.com/questions/8225558/how-do-i-round-to-2-decimal-places">How do I round to 2 decimal places?</a>  </p>
</blockquote>



<p>In PHP I can do the following to round to 2 decimal places;</p>

<pre><code>$number = 3.45667;
$result = number_format($number, 2, '.', ''); // 3.46
</code></pre>

<p>How can I do the same in JavaScript?</p>
