Hello all, I've ran into a problem in my programming recently.

How do I calculate the number of digits in a double variable? For example, for a double with the value of 93938, I want it to return a value of 5, meaning 5 digits. Is there any inbuilt functions which returns the number of digits of a double variable or do I have to code it myself?

Thanks for the help!