Android: float - get rid of trailing point zeros
<p>i did a lot of search on the internet but could not get a satisfacting solution.
The best I did was:</p>

<pre><code>String b = new BigDecimal(floatNumber.stripTrailingZeros().toPlainString();
</code></pre>

<p>But it hast some nasty bugs, e.g. if the number is 1.6 i get 1.600000744 (or similar). </p>

<p>thanks</p>
