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.
If its only for validating you could do: 887979789 > 99999999
887979789 > 99999999