in reply to Re: issues using bigrat
in thread issues using bigrat
You changed
$s += $k / ($n-$k);
to
$s += ($n + 1 - $i) / $i;
The "+ 1" has the same effect as the "1 *" the OP used in his fixed version. Just like him, your $n and $i are plain integers, not big ints.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: issues using bigrat
by perl-diddler (Chaplain) on May 11, 2008 at 21:47 UTC | |
by ikegami (Patriarch) on May 11, 2008 at 22:15 UTC |