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