title: C#: Pagination, Math.Ceiling
body: <p>I'm creating some pagination and I'm getting an issue.</p>
  
  <p>If I have a number 12 and I want to divide that by 5 (5 is the number of results I want on a page), how would I round it up properly? This doesn't work:</p>
  
  <pre><code>int total = 12;
  int pages = Math.Ceiling(12 / 5);
  //pages = 2.4... but I need it to be 3
  </code></pre>