title: Finding the number of places after the decimal point of a Double
body: <p>I have a Double value:</p>
  
  <pre><code>double a = 4.5565;
  </code></pre>
  
  <p>What is the easiest way to calculate the number of digits after the decimal point (4 in this case).</p>
  
  <p>I know that I can convert to string and do a split and take the length. But is there an easier way?</p>