title: How many decimal Places in A Double (Java)
body: <p>Is there any in built function in java to tell me how many decimal places in a double. For example: </p>
  
  <pre><code>101.13 = 2
  101.130 = 3
  1.100 = 3
  1.1 = 1
  -3.2322 = 4 etc.
  </code></pre>
  
  <p>I am happy to convert to another type first if needed, I have looked at converting to bigdecimal first with no luck.</p>