How can I get a count of the total number of digits of a number in C#? For example, the number 887979789 has 9 digits.
dividing a number by 10 will give you the left most digit then doing a mod 10 on the number gives the number without the first digit and repeat that till you have all the digits