Truncate a double variable in Javascript?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/4912788/truncate-decimal-number-not-round-off-in-jquery">Truncate Decimal number not Round Off in jquery</a>  </p>
</blockquote>



<p>I have values like <code>5.3777777</code>, <code>4.6666666</code> on my <code>Y</code> variable.</p>

<p>How can I truncate it so it shows 5.3 or 5.6 instead with JavaScript?</p>

<p>Thanks in advance!</p>
