title: how to remove zeros after decmal from string remove all zero after dot
body: <p>I'm getting price from server in this format <code>1299.0000</code> or <code>4399.000</code>  how i will remove all zero after "."   help me please how i will do that how to remove numbers after"." ???? im getting form server price value infloating number how i will remove all zero after "."</p>
  
  <p>how to remove zero after decimal like 1<code>3400.0000</code> (remove last 4 zero)</p>
  
  <p>or <code>2349.00</code>  (remove last 2 zero)</p>
  
  <p>remove all zero after <code>"."</code> how I do that?</p>
  
  <pre><code>static ArrayList&lt;String&gt; Category_price= new ArrayList&lt;String&gt;();
  Category_price.add(object.getString("price"));
  
     holder.txtText3.setText("Price: "+Html.fromHtml(ProductList.Category_price.get(position)));
  </code></pre>
  
  <p>Thanks</p>