title: C/C++ counting the number of decimals?
body: <p>Lets say that input from the user is a decimal number, ex. 5.<strong>2155</strong> (having 4 decimal digits). It can be stored freely (int,double) etc.</p>
  
  <p>Is there any <strong>clever</strong> (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).</p>