Re: round to nearest 500?

From: Date: Mon, 12 Feb 2007 18:57:49 +0000
Subject: Re: round to nearest 500?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-248780@lists.php.net to get a copy of this message
On Mon, 12 Feb 2007 18:02:41 +0100, <tg-php@gryffyndevelopment.com> wrote:
Is there an easy way in php to round to the nearest 500? Yeah
$rouned = round($val/500) * 500; Marc

« previous php.general (#248780) next »