in reply to
Best way to make sure a number is an even multiple of another?
Assuming $n is any integer and $m is a positive integer (if $m is negative it finds the first equal or below instead of equal or above)
-$n%$m+$n
[download]
(don't use this under "use integer")
Comment on
Re: Best way to make sure a number is an even multiple of another?
Download
Code
In Section
Seekers of Perl Wisdom