title: Expressions with BigDecimal Java / Kotlin
body: <p>I need help from those who understand Java / Kotlin.</p>
  <p>I would like to perform some calculations with BigDecimal</p>
  <p>How would the expression below look using BigDecimal?</p>
  <p><strong>(1 + 0.02) ^ (1 / 251) - 1</strong></p>
  <p>I tried to do like this:</p>
  <pre><code>val x = (BigDecimal.ONE + BigDecimal(0.02)).pow(1/251) - 1
  </code></pre>
  <p>However, dividing 1 by 251 is not accurate and this expression always returns 0</p>