title: Format number using decimal format in kotlin
body: <p>I am facing an issue where I need to do some calculations with a number like for example <strong>5000,00</strong> multiplied it by (<strong>1,025^3</strong>).</p>
  
  <p>So in this case <code>5000,00 * (1,025^3) = 5385,45</code></p>
  
  <p>So my question is, how can I format the number 5385,45 to be like <strong>5.385,45</strong> using decimal format maybe?</p>
  
  <p>I tried by myself and I did this piece of code that outputs 5385,45 in the app but not <strong>5.385,45</strong></p>
  
  <pre><code>    var interestValue = (5000,00*(Math.pow(1.025,yearValue)))
      val number = java.lang.Double.valueOf(interestValue)
      val dec = DecimalFormat("#,00")
      val credits = dec.format(number)
      vValueInterest.text = credits
  </code></pre>