Round up if negative round down if positive php?
<p>Round up if negative round down if positive?
I have </p>

<p><code>$rounded =1000</code></p>

<pre><code>39528,65 round should be --&gt; 39000
</code></pre>

<p>AND </p>

<pre><code>-30965,77 --&gt; -31000
</code></pre>
