Why it is leaving the decimals
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/5971645/what-is-the-double-tilde-operator-in-javascript">What is the “double tilde” (~~) operator in JavaScript?</a>  </p>
</blockquote>



<p>My Code:</p>

<pre><code>&lt;SCRIPT type="text/javascript"&gt; 

var num = 2.52;
alert(~~num);

&lt;/SCRIPT&gt;
</code></pre>

<p>It is giving the result as <code>2</code>. Why it is leaving the decimals? Any Ideas.</p>
