Get separate digits from int in C#

Viewed 24159

I stumbled across this challenge when I needed to calculate a check number/digit from the individual digits of the number itself.

E.g. I have the number (Int32) 423594340 and I want a collection of integers like 4,2,3,5,9,4,3,0.

I think it is better to not convert the given int into a String because of performance. But how do you do that instead?

1 Answers
Related