code: public static Number parseDouble(String value) throws ParseException
     {
  
        Number result = null;
        value = parseString(value);
  
        // If we still have a value
        if (value != null && !value.isEmpty() && !value.equals("-1 -1"))
        {
           int index = value.indexOf("E+");
           if (index != -1)
           {
              value = value.substring(0, index) + 'E' + value.substring(index + 2, value.length());
           }
  
           if (value.indexOf('E') != -1)
           {
              result = DOUBLE_FORMAT.get().parse(value);
           }
           else
           {
              result = Double.valueOf(value);
           }
        }
  
        return result;
     }
docs: Parse the string representation of a double.
  
  @param value string representation
  @return Java representation
  @throws ParseException