Return to Snippet

Revision: 8404
at September 18, 2008 15:00 by methnen


Initial Code
function round_multiple($num, $multiple) 
{ 
    return round($num / $multiple) * $multiple; 
}

Initial URL

                                

Initial Description
Round to the nearest multiple.

Initial Title
Round To The Nearest Multiple

Initial Tags

                                

Initial Language
PHP