Round to a given value?

From: Date: Wed, 24 Dec 2008 19:38:23 +0000
Subject: Round to a given value?
Groups: php.general 
Request: Send a blank email to php-general+get-285054@lists.php.net to get a copy of this message
Rounding an integer to the closest divisor by ten is easy with round() and a negative precision, but I turn out to be lost if I want to round to a given number.. Example, round to the closest 5000, or closest 400? Any great ideas? Thanks, and merry x-mas! Anders.

« previous php.general (#285054) next »