title: How to always get a whole number if we divide two integers in c#
body: <p>I have three integer type variable </p>
  
  <ol>
  <li>Totallistcount</li>
  <li>totalpagescount</li>
  <li>perpagecount</li>
  </ol>
  
  <p>Suppose at initial level i have this </p>
  
  <pre><code>Totallistcount = 14;
  perpagecount = 9;
  </code></pre>
  
  <p>Now I have a formula to found total number of pages possible </p>
  
  <pre><code>totalpagescount = Totallistcount / perpagecount ;
  </code></pre>
  
  <p>but in this situtation I got <code>1</code> in <code>totalpagescount</code> but I need <code>2</code> in <code>totalpagescount</code> , because 9 items on the first page and rest of item will be displayed on last page , How can I do this   </p>
  
  <p>Thanks ,</p>