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. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php