How can I take a number, like 23167 and then be able to seperate between the ones,tens,hundreds,ect, digits. So I could end up having something like
a1 = 7; // ones digit
a2 = 6; // tens digit
a3 = 1; // hundreds digit
a4 = 3; // thousands digit
a5 = 2; //ten-thousand digit

Thanks