title: Convert from string to double removes trailing zeros
body: <p>I am trying to convert a list of doubles from a string format into a double format. I did this by putting them into a list and using the <code>Double.parseDouble(string)</code> method.</p>
  
  <p>This works for most numbers but it gives an unwanted output when the double contains a trailing zero the <code>parseDouble</code> method is removing it. I don't want this to be removed.</p>
  
  <pre><code>String[] values = {"124.50", "45.801", "-15.210"};
  List&lt;Double&gt; nums = new ArrayList&lt;Double&gt;();
  
  for(String s: values)
  nums.add(Double.parseDouble(s));
  Collections.sort(nums);
  
  for(Double d: nums){
      System.out.print(d + " ");
  }
  </code></pre>
  
  <p>This yields the output:</p>
  
  <pre><code>-15.21 45.801 124.5
  </code></pre>
  
  <p>But I want the trailing zeros. The problem with using a formatted line is that I would have to specify the floating point accuracy that I want when printing values, but I don't have any specific desire to make the numbers accurate to a certain point, merely leave the zeros alone if they are there.</p>
  
  <p>Am I approaching this wrong?</p>