Get the property object as double, or return defaultVal if property is not defined.

@param name
property name.
@param defaultVal
default property value.
@return
property value as double, return defaultVal if property is undefined.
427334
public double getDouble(String name, double defaultVal){
        if(this.configuration.containsKey(name)){
            return this.configuration.getDouble(name);
        } else {
            return defaultVal;
        }
    }
475800
private double getDouble( int idx, double defaultValue, CssFormatter formatter ) {
        if( parameters.size() <= idx ) {
            return defaultValue;
        }
        return parameters.get( idx ).doubleValue( formatter );
    }
693600
public double getDouble(String name) throws JSONException {
		Object object = get(name);
		Double result = JSON.toDouble(object);
		if (result == null) {
			throw JSON.typeMismatch(name, object, "double");
		}
		return result;
	}
1181972
public static Double getPropertyDouble(Class<?> aClass, String key,
			double defaultValue)
	{
		return getSettings().getPropertyDouble(key, defaultValue);
	}
23597
public static Double getAsDouble(Object value) {
		Double result = null;

		try {
			if (value instanceof String) {
				result = Double.valueOf((String) value);
			} else if (value instanceof Number) {
				result = ((Number) value).doubleValue();
			} else {
				result = null;
			}
		} catch (Exception e) {
			result = null;
		}

		return result == null ? 0 : result;
	}
1055255
public static boolean getBoolean(String name, boolean defaultVal){
        if(getConfiguration().containsKey(name)){
            return getConfiguration().getBoolean(name);
        } else {
            return defaultVal;
        }
    }
1232249
private static double doubleValue(Object attributeValue)
         throws NumberFormatException {

        if (attributeValue instanceof Number) {
            return (((Number) attributeValue).doubleValue());
        } else {
            return (Double.parseDouble(attributeValue.toString()));
        }

    }
1040609
public static double getDouble(JsonObject object, String field, double defaultValue) {
        final JsonValue value = object.get(field);
        if (value == null || value.isNull()) {
            return defaultValue;
        } else {
            return value.asDouble();
        }
    }
1190844
public Double optDouble(String name, Double fallback) {
        return optDouble(name, fallback, true);
    }
236808
public boolean getBoolean(String name, boolean defaultVal){
        if(this.configuration.containsKey(name)){
            return this.configuration.getBoolean(name);
        } else {
            return defaultVal;
        }
    }
180012
public static Double readDouble(String value, Double defaultValue) {
		if (!StringUtils.hasText(value)) return defaultValue;
		
		return Double.valueOf(value);
	}
924859
@Override
    public double getWithDefault(int idx, double defaultVal) {
		int i = Arrays.binarySearch(indices, 0, used, idx);
		if (i < 0) {
			return defaultVal;
		}
		return values[i];
	}
753066
public int getIntReqPar(final String name,
                          final int defaultVal) throws Throwable {
    String reqpar = getReqPar(name);

    if (reqpar == null) {
      return defaultVal;
    }

    try {
      return Integer.parseInt(reqpar);
    } catch (Throwable t) {
      return defaultVal; // XXX exception?
    }
  }
447789
public String getString(String name, String defaultVal){
        if(this.configuration.containsKey(name)){
            return this.configuration.getString(name);
        } else {
            return defaultVal;
        }
    }
1143286
public Double getDefaultOnNull(Double value, Double defaultValue)
   {
      return (value == null ? defaultValue : value);
   }
181590
public DoubleParameter setDefaultValue(double defaultValue) {
		super.setDefaultValue(defaultValue);

		if (hasMinimumValue) {
			if (minimumValueInclusive) {
				Util.checkParameter(defaultValue >= minimumValue,
					"Default value (" + defaultValue + ") must be greater than or equal to minimum (" + minimumValue + ")");
			} else {
				Util.checkParameter(defaultValue > minimumValue,
					"Default value (" + defaultValue + ") must be greater than minimum (" + minimumValue + ")");
			}
		}

		if (hasMaximumValue) {
			if (maximumValueInclusive) {
				Util.checkParameter(defaultValue <= maximumValue,
					"Default value (" + defaultValue + ") must be less than or equal to maximum (" + maximumValue + ")");
			} else {
				Util.checkParameter(defaultValue < maximumValue,
					"Default value (" + defaultValue + ") must be less than maximum (" + maximumValue + ")");
			}
		}

		return this;
	}
95947
public final double getDoubleDefault(double defaultValue, String attribute, String... path)
    {
        try
        {
            return Double.parseDouble(getNodeStringDefault(String.valueOf(defaultValue), attribute, path));
        }
        catch (final NumberFormatException exception)
        {
            throw new LionEngineException(exception, media);
        }
    }