Android. 4.1 - 4 = 0.09999999999999964. Why?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/11065397/android-number-format-is-wrong-somehow-instead-of-3-5-i-get-3-499999999-why">Android number format is wrong somehow, instead of 3.5 I get 3.499999999, why?</a>  </p>
</blockquote>



<p>Does any one know why Android platform gives such strange result? </p>

<p><strong>4.1 - 4  = 0.09999999999999964</strong></p>

<p>It's only 4 that gives such strange rounding. </p>

<p>Actually I need to get mantissa from 4.1 so I need 0.1 as result but not 0.09999999999999964.</p>

<p>Any ideas? </p>
