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.
convert into string and then you can count tatal no of digit by .length method. Like:
String numberString = "855865264".toString(); int NumLen = numberString .Length;