mynamesleo Posted November 14, 2006 Share Posted November 14, 2006 Hi all,Trying to round a number to the next 10, example18 would = 2015 would = 2011 would = 209 would = 103 would = 10etc....Any simple ways to do this? Have checked out the round() but it seems I need more than this? Quote Link to comment Share on other sites More sharing options...
sasa Posted November 14, 2006 Share Posted November 14, 2006 $number = ceil($number / 10) * 10; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.