in reply to Re^4: While loop with addition goes weird (binary float rounding error)
in thread While loop with addition goes weird
The OP probably has the same off-by-one error as your second reference. The floating-point accuracy issue clearly applies to the current question.
Bill
In Section
Seekers of Perl Wisdom