...

View Full Version : Round numbers



Pompiuses
04-02-2003, 02:26 PM
How can I round a number up to the nearest ten?
i.e: round 82.5 up to 90. Or 57 up to 60 etc....

Íkii
04-02-2003, 02:28 PM
$num = ceil($num/10)*10;



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum