title: How to avoid Double values getting stored in 1Ex format?
body: <p>I am having a double variable:</p>
  
  <pre><code>private double b=0.0;
  </code></pre>
  
  <p>I am taking value of a certain field in b (the value is between 0.0 to 9.99999999). Mostly, user enters value between 0.0 to 1.0.</p>
  
  <p>When I am saving the value from user in 'b', and if the value is 0.000001, then it is getting saved as 1E-6 and next time displayed as same on the screen (this is because b is Double).</p>
  
  <p>Is there any way (just by calling some method) in Java, that I can avoid the conversion of value to 1E-6 format? I want to save the value as entered by user only (0.000001).</p>