how to find how much digits in number csharp

Code Example - how to find how much digits in number csharp

                
                        Math.Floor(Math.Log10(n) + 1);
//find how much digit in number
//decimal point will not be added