How to count the number of digits of a floating number?

This method should suffice.
It basicly always moves the comma one digit to the left and chops the digits after the comma of. And checks if choppign the digits of made a difference.

I hope I could help!

Wow, this is a very short and usefull code @NumericPrime . I was trying to get more digits with your code (using double cast), but the compiler shows me error of conversion. Is there a way to get more digits with your code?

Thanks