in reply to Best way to make sure a number is an even multiple of another?
sub fix { my($n, $m) = @_; $n + ($n*$m - $n)%$m; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Best way to make sure a number is an even multiple of another?
by Roy Johnson (Monsignor) on Oct 21, 2004 at 14:37 UTC | |
by bart (Canon) on Oct 21, 2004 at 14:46 UTC | |
by Roy Johnson (Monsignor) on Oct 21, 2004 at 16:39 UTC | |
by hv (Prior) on Oct 22, 2004 at 10:44 UTC |