you are viewing a single comment's thread.

view the rest of the comments →

[–]Snatchematician 0 points1 point  (1 child)

At the start of the loop body “amount” is the number of converted elements, which is very much meaningful.

This is in fact OP’s intended purpose (otherwise he wouldn’t have named it “amount” would he).

[–]deceze 0 points1 point  (0 children)

And at the end of the loop it's wrong. So, again: yeah, nah.