Say I have an integer, 9802, is there a way I can split that value in the four individual digits : 9, 8, 0 & 2 ?
You probably want to use mod and divide to get these digits.
Something like:
Grab first digit: Parse digit: 9802 mod 10 = 2 Remove digit: (int)(9802 / 10) = 980 Grab second digit: Parse digit: 980 mod 10 = 0 Remove digit: (int)(980 / 10) = 98
Something like that.