http://qs321.pair.com?node_id=1212872


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