How to get whole number when dividing 2 numbers in JavaScript
<p>I am implementing paging in JavaScript,</p>

<p>Now if I have <code>total_item_count = 69</code> and I want 10 records per page then it should show 7 pages but it is showing 6 pages. </p>

<p>What I am doing: </p>

<pre><code>var totalpages = 69/10 ; // it should give 7 but its giving 6 
</code></pre>

<p>Thanks in advance. </p>
