Round large non-decimal numbers, up and down with php
<h2>How do I round larger numbers in php.</h2>

<p>NOTE: I have aready tried the round function and can not seem to get it to work as i need</p>

<h3>for example:</h3>

<p>Say i have 4 listing in a database and they have 4 different prices.</p>

<pre><code>    1st Price = 5,783

    2nd Price = 19,647

    3rd Price = 12,867

    4th Price = 23,647
</code></pre>

<p><br></p>

<p>Now we determin that the <strong>lowest price</strong> in the databae would be <strong>5,783</strong></p>

<p>and the <strong>highest price</strong> is <strong>23,647</strong>.</p>

<p><br></p>

<p>now what i want to do is round down the lowest price to say the nearest <strong>500</strong> or <strong>1000</strong> or even <strong>5000</strong></p>

<p><br></p>

<p><strong>example of nearset 1000</strong></p>

<p>lowest price <strong>5,783</strong> rounded down = <strong>5000</strong></p>

<p>highest price <strong>23,647</strong> rounded up = <strong>24000</strong></p>
