Get each number from an outputted int (or string) one by one - jQuery
<p>so I'm wanting to do something like this:</p>

<p>I've got a variable that will return anything upto a 7 didget number, and i need to test the value of each digit individually.
I can only think to do it as a string, but please feel free to offer help as a string or an integer.</p>

<pre><code>total = "1658793";
parseFloat(total.substring(6)) == 3;
</code></pre>

<p>returns "true"</p>

<p>but I need to be able to get the next value, and the next, and then next, individually.</p>

<p>and obviously</p>

<pre><code>parseFloat(total.substring(5)) == 9;
</code></pre>

<p>returns "false"</p>

<p>as "parseFloat(total.substring(5)) = 93" but i need to be able to regex check or something to find the 9 on its own. i need the 9, not the 93
does that make sense??</p>

<p>thanks
Matt.</p>
