title: PHP Rounding Numbers
body: <p>I cannot seem to figure out how to always round up in PHP. <code>ceil()</code> would be the obvious choice but I need the same functionality that <code>round()</code> provides with its second parameter "precision". Here is an example:</p>
  
  <pre>
  // Desired result: 6250
  echo round(6244.64, -2); // returns 6200
  echo round(6244.64, -1); // returns 6240
  echo ceil(6244.64) // returns 6245
  </pre>
  
  <p>I need the number to always round up so that I can calculate an equal divisor based on parameters for a chart.</p>