Hi, how about this one?
This is much more flexible by changing the value of $digit and simple in a one line.
function roundup($number, $digit = 100) { return ( is_numeric($number) && is_numeric($ digit) ) ? (ceil($numbe +r/$ digit)*$digit) : false; }
Please feel free to contact me at chae@azstrada.com if you have any questions.
Chae from Seoul Korea.
In reply to Re^3: Round up 3 values to the next 100
by Anonymous Monk
in thread Round up 3 values to the next 100
by siva kumar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |