Quote from: Gurok on Thu 05/06/2014 00:32:56yours will reset the string...Remove that check in your pseudo code for "the correct number of digits" and the two suggestions should behave very similarly.
Quote from: monkey_05_06 on Mon 02/06/2014 12:57:17you can reset the String
I listed "that check" as an optional step, not a mandatory one. Assuming that the check is omitted, then yes, the two give the same results (which was kind of my point in responding to 424).
For what it's worth, Elias' code is still essentially the same thing, we're just listing more and more complicated (and therefore potentially error-prone) means to the same end.
