in reply to Instructive bug
It's got to be the
that is causing the problem. My guess is that $balance * $i ends up greater than 32 bits, so it converts to a float, and when divided by $slice_count it ends up larger than $cur_balance even when $i == $slice_count. Michael |
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Instructive bug
by perrin (Chancellor) on Mar 05, 2002 at 16:41 UTC | |
|
Re (tilly) 2: Instructive bug
by tilly (Archbishop) on Mar 05, 2002 at 17:36 UTC | |
by ChemBoy (Priest) on Mar 05, 2002 at 18:19 UTC | |
by mdillon (Priest) on Mar 05, 2002 at 17:48 UTC | |
by tilly (Archbishop) on Mar 05, 2002 at 18:15 UTC | |
by mdillon (Priest) on Mar 05, 2002 at 18:23 UTC | |
|
Re: Re: Instructive bug
by mdillon (Priest) on Mar 05, 2002 at 16:48 UTC |