title: Possible to find out if a BigDecimal only has zeros recurring after a certain point?
body: <p>Specifically, I want to know if it's possible to determine if everything after 2 decimal points will always be a zero.</p>
  
  <p>For example where this is the case:</p>
  
  <pre><code>    BigDecimal m1 = new BigDecimal("15");
      BigDecimal m2 = new BigDecimal("2");
      BigDecimal m3 = m1.divide(m2, 5, BigDecimal.ROUND_CEILING);
  m3 is equal to 7.50000 (and there will still be 0s even if you increase the precision)
  </code></pre>
  
  <p>An example where this is not the case</p>
  
  <pre><code>    BigDecimal m1 = new BigDecimal("11.24");
      BigDecimal m2 = new BigDecimal("6");
      BigDecimal m3 = m1.divide(m2, 5, BigDecimal.ROUND_CEILING);
  m3 is equal to 1.87334
  </code></pre>
  
  <p>Another possible scenario where this will not be the case (can't think of division values) is when </p>
  
  <pre><code> m3 is equal to 7.50000001
  </code></pre>
  
  <p>Thank you for your help (and I apologise if the answer is straightforward/simple!)</p>