Display two decimal places, no rounding
<p>Suppose I have a value of 15.7784514, I want to display it 15.77 with no rounding.</p>

<pre><code>var num = parseFloat(15.7784514);
document.write(num.toFixed(1)+"&lt;br /&gt;");
document.write(num.toFixed(2)+"&lt;br /&gt;");
document.write(num.toFixed(3)+"&lt;br /&gt;");
document.write(num.toFixed(10));
</code></pre>

<p>Results in -</p>

<pre><code>15.8
15.78
15.778
15.7784514000 
</code></pre>

<p>How do I display 15.77?</p>
