title: Android How can I convert String to Double without losing precision?
body: <p>i want to develop one calculation base application but getting one problem.</p>
  
  <p>Tried as below</p>
  
  <pre><code>double add_num = 10.06
  String data = edittext.getText().toString();
  </code></pre>
  
  <p>value assign to data is</p>
  
  <pre><code>// data = 1000.06
  </code></pre>
  
  <p>now i am converting string to double</p>
  
  <pre><code>double amount = Double.parseDouble(data);
  // amount = 1000.0
  double final_amount = amount + add_num;
  // final_amount = 1010.0
  </code></pre>
  
  <p>getting final_amount is <strong>1000.0</strong> which is not correct because <strong>amount</strong> value is losing precision i want the correct answer which is <strong>1000.06</strong></p>
  
  <p>please let me know correct way without using format() method </p>