code: public Double convertToDouble(String value) {
          Double result = null;
          if (value != null) {
              result = Double.valueOf(value);
          }
          return result;
      }
docs: Determines double value of String (so relative checks can be done).
  @param value string to convert to double.
  @return double value.