title: Remove trailing zeros in float representation
body: <p>Declaring a variable of this form <code>%.2f</code> what I want is to have maximum 2 digits after decimal point.</p>
  
  <p>As it is now, it shows only two as expected, I would like to have also the trailing zeros removed.</p>
  
  <pre><code>formatString = "&lt; %.2f Km"
  </code></pre>
  
  <p>where I use <code>formatString</code> as 
  <code>String.format(formatString , value)</code></p>
  
  <p>Is there a way to do it during this part of the code?</p>