title: Round to nearest whole number PHP
body: <p>I figure this is easy enough but I am missing something here.  Im using Stripe Connect and trying to calculate an application fee (in cents).  The problem is my application fee sometimes has a decimal so it is throwing an error.  I have tried using <a href="http://php.net/manual/en/function.round.php" rel="nofollow noreferrer">round()</a> which gives me  and <a href="http://php.net/manual/en/function.ceil.php" rel="nofollow noreferrer">ceil()</a> but Im still getting a decimal and trailing zero in my answer so it returns an error.</p>
  
  <pre><code>$payment =  bcmul($request-&gt;amount, 100); //112.00 - Convert to cents for stripe becomes 11200
  $applicationFee = $payment * 0.021; //235.2 but should be just 235
  print_r($applicationFee); //Should be whole number, round and ceil still provide me with decimal number IE 235.0 instead of 235
  </code></pre>
  
  <p>How can I make sure applicationFee is always a whole number with no decimal and rounded to nearest whole number?</p>