public static double createDoubleSetting(final Map<String,String> rawSettings,final String settingName,final double defaultValue){
  final String settingString=rawSettings.get(settingName);
  if (settingString == null) {
    return defaultValue;
  }
 else {
    try {
      return Double.parseDouble(settingString);
    }
 catch (    final NumberFormatException exception) {
      CUtilityFunctions.logException(exception);
      return defaultValue;
    }
  }
}

public static double createDoubleSetting ( final Map < String , String > rawSettings , final String settingName , final double defaultValue ) { final String settingString = rawSettings . get ( settingName ) ; if ( settingString == null ) { return defaultValue ; } else { try { return Double . parseDouble ( settingString ) ; } catch ( final NumberFormatException exception ) { CUtilityFunctions . logException ( exception ) ; return defaultValue ; } } }
turns a settings string value into a double value .
