code: private Double getDouble(String number) {
      try {
        return Double.parseDouble(number);
      } catch (NumberFormatException e) {
        return null;
      }
    }
docs: Gets the double.
  
  @param number the number
  @return the double