Round To The Nearest Multiple


/ Published in: PHP
Save to your folder(s)

Round to the nearest multiple.


Copy this code and paste it in your HTML
  1. function round_multiple($num, $multiple)
  2. {
  3. return round($num / $multiple) * $multiple;
  4. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.