title: Convert exponential string value to double - Java
body: <p>I've an exponential string value </p>
  
  <pre><code>String str = "2.00000181334612E15";
  </code></pre>
  
  <p>And I'm trying to convert it to a double value.</p>
  
  <pre><code>Double d = (Double.parseDouble(str));
  </code></pre>
  
  <p>But am getting an Exception as follows,</p>
  
  <pre><code>Exception in thread "main" java.lang.NullPointerException
      at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1047)
      at java.lang.Double.parseDouble(Double.java:521)
      at com.swissre.lhrte.poi.test.TestClient.main(Test.java:133)
  </code></pre>
  
  <p>What am I doing wrong?</p>