in reply to Best way to make sure a number is an even multiple of another?

Perhaps something like:
use POSIX qw(ceil); sub fix { my ($n, $m) = @_; ceil($n/$m)*$m; }
  • Comment on Re: Best way to make sure a number is an even multiple of another?
  • Download Code