Re: round to nearest 500?
| From: | tedd | Date: | Tue, 13 Feb 2007 17:10:39 +0000 |
| Subject: | Re: round to nearest 500? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-248812@lists.php.net to get a copy of this message | ||
At 7:57 PM +0100 2/12/07, Marc Weber wrote:
On Mon, 12 Feb 2007 18:02:41 +0100, <tg-php@gryffyndevelopment.com> wrote:I've always questioned the round() function. I believe it has a downward bias, am I wrong? tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.comIs there an easy way in php to round to the nearest 500?Yeah $rouned = round($val/500) * 500;