How to convert numbers like 902.1 or 902 to 900 in php : <p>Anyone knows how i can convert How to convert numbers like 902.1 or 902 to 900 in php..i have tried both ceil and floor like below but still same issue</p>

<pre><code>$amount = 902.1
  $amount2 = floor($amount);
  return $amount2;

   returns 902
</code></pre>

<p>but i want to return either 900 or 910..something like this</p>
