in reply to Re (tilly) 1: Fast Multiplication
in thread Fast Multiplication
sub mult2 { my($a, $b) = @_; my $product = 0; $product += $a while ($b--); return $product; }
mine would be faster for larger numbers.. i think. i could always be wrong, its happened before :) I'll have to use Benchmark; to test it ;)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re (tilly) 3: Fast Multiplication
by tilly (Archbishop) on Jan 12, 2001 at 17:34 UTC | |
by zencrypt (Novice) on Jan 13, 2001 at 10:36 UTC |