title: Java - How To Show Decimals with BigDecimal pow
body: <p>I'm currently stuck trying the following. </p>
  
  <p>I have managed to store two values as BigDecimals, I have also managed to divide these values and show the chosen amount of decimals.</p>
  
  <p>Current fields:</p>
  
  <pre><code>BigDecimal latestPopulation, earliestPopulation, gip, divider;
  </code></pre>
  
  <p>Like so:</p>
  
  <pre><code>latestPopulation = new BigDecimal(aInterger.toString());
  earliestPopulation = new BigDecimal(bInterger.toString());
  divider = latestPopulation.divide(earliestPopulation, 10, RoundingMode.HALF_UP);
  </code></pre>
  
  <p>I then need to use the power of like so:</p>
  
  <pre><code>gip = divider.pow(1/cInterger);
  </code></pre>
  
  <p>However when I call <code>System.out.println(gip);</code> it shows the result with no decimal places.
  How do I define the number of decimal places I want?</p>