Posted By

methnen on 09/18/08


Tagged

multiple round nearest


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

elgermano
silentbob84
joethermal


Round To The Nearest Multiple


 / Published in: PHP
 

Round to the nearest multiple.

  1. function round_multiple($num, $multiple)
  2. {
  3. return round($num / $multiple) * $multiple;
  4. }

Report this snippet  

You need to login to post a comment.