Lets say that input from the user is a decimal number, ex. 5.**2155** (having 4 decimal digits). It can be stored freely (int,double) etc.

Is there any **clever** (or very simple) way to find out how many decimals the number has? (kinda like the question how do you find that a number is even or odd by masking last bit).