title: ceil() not working as I expected
body: <p>I'm trying to divide one number by another and then immediately ceil() the result. These would normally be variables, but for simplicity let's stick with constants.</p>
  
  <p>If I try any of the following, I get 3 when I want to get 4.</p>
  
  <pre><code>double num = ceil(25/8); // 3
  float num = ceil(25/8); // 3
  int num = ceil(25/8); // 3
  </code></pre>
  
  <p>I've read through a few threads on here (tried the nextafter() suggestion from <a href="https://stackoverflow.com/questions/2311262/math-h-ceil-not-working-as-expected-in-c">this thread</a>) as well as other sites and I don't understand what's going on. I've checked and my variables are the numbers I expect them to be and I've in fact tried the above, using constants, and am still getting unexpected results.</p>
  
  <p>Thanks in advance for the help. I'm sure it's something simple that I'm missing but I'm at a loss at this point.</p>