sub fix { my($n, $m) = @_; $n + ($n*$m - $n)%$m; }
In reply to Re: Best way to make sure a number is an even multiple of another?
by bart
in thread Best way to make sure a number is an even multiple of another?
by demerphq
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |