|
![](/i/fill.gif) |
Margus Ramst wrote:
> It is a float precision problem (in decrementing of Next by 0.1). Because of it
> your loop goes through 11 iterations instead of 10. It' will work fine if you
> change Next to 10 and decrement it by 1 insted of 0.1
> Note that this is not a bug; floating point math is just not infinitely precise,
> and 0.1 is a problematic number, since it can't be presented accurately in
> binary notation (just like 1/3 in decimal).
Ah, I remember that crap... took me a while to figure it out when it happened to me.
It could happen to you, to. *points finger* ;-)
--
David Fontaine <dav### [at] faricy net> ICQ 55354965
Please visit my website: http://www.faricy.net/~davidf/
Post a reply to this message
|
![](/i/fill.gif) |