title: C: How do I make a number always round up
body: <p>I'm wanting to make a function that calculates a cost based on time.  For any time less than three hours, it would return a flat rate charge of $2.  For each hour or part of an hour over that, it would charge an additional $0.50.  Hours are input by user as a float data type to 2 decimal places.  How can I make it to where it will always round up the time to a whole hour? Here's the code I have so far for the function:</p>
  
  <pre><code>int calculateCharges(float hours)
  {
   if (hours &lt;= 3){
      return 2.00
  }
  else
  </code></pre>