title: How to subtract 2 floats in Kotlin
body: <p>I have a very strange problem in my Kotlin app :</p>
  
  <pre><code>14.9 - 12.8 == 2.0999994
  </code></pre>
  
  <p>I also tried to do :</p>
  
  <pre><code>var1 = 14.9
  var2 = 12.8
  var1.minus(var2)
  </code></pre>
  
  <p>but I strangely get the same result.</p>
  
  <p>How can I subtract 2 floats in Kotlin and getting a decent value, like 2.1 in this case ?</p>