Returns the float value for the specified name. If the name does not
exist or the value for the name can not be interpreted as a float, the
defaultValue is returned.

@param name
@param defaultValue
@return name value or defaultValue
1482
public float getFloat(String name, float defaultValue) {
        try {
            String value = getString(name, null);
            if (!StringUtils.isNullOrEmpty(value)) {
                return Float.parseFloat(value.trim());
            }
        } catch (NumberFormatException e) {
            log.warn("Failed to parse float for " + name + USING_DEFAULT_OF
                + defaultValue);
        }

        return defaultValue;
    }
542066
@NonNull
    public Parameters setFloat(@NonNull String name, float value) {
        return setValue(name, value);
    }
527206
public static float getFloat(String name, float defaultVal){
        if(getConfiguration().containsKey(name)){
            return getConfiguration().getFloat(name);
        } else {
            return defaultVal;
        }
    }
1234400
public boolean getAsBoolean(final String name, final boolean defaultValue) {
        return AtsdUtil.getPropertyBoolValue(fullName(name), clientProperties, defaultValue);
    }
1033349
public static Date getDateParam(String name, Date defaultValue) {
		String param = getParam(name);
		return StrUtil.isBlank(param) ? defaultValue : DateUtil.parse(param);
	}
50613
public static float getSystemPropertyAsFloat(String name, float defaultValue) {
        final String value = getSystemProperty(name, null);
        if (value != null) {
            try {
                return Float.parseFloat(value);
            } catch (Throwable exception) {
                //
            }
        }
        return defaultValue;
    }
447927
public Float getFloat(Map<String, Object> data, String name) {
    return get(data, name, Float.class);
  }
648400
protected String getValue (String name, Object defaultValue)
    {
        String value = getParameter(name);
        if (StringUtil.isBlank(value)) {
            if (defaultValue == null) {
                value = "";
            } else {
                value = String.valueOf(defaultValue);
            }
        }
        return HTMLUtil.entify(value);
    }
522026
public float getFloat(Enum<?> key, float defaultValue)
    {
        if (key == null)
        {
            return defaultValue;
        }

        return getFloat(key.name(), defaultValue);
    }
367159
public long getLong(final String name, final long defaultValue) {
    if (containsKey(name)) {
      return Long.parseLong(get(name));
    } else {
      return defaultValue;
    }
  }
1163869
private String getValueOrDefault(HttpServletRequest req, String paramName, String defaultValue) {
		final String value = req.getParameter(paramName);
		return StringUtils.isEmpty(value) ? defaultValue : value;
	}
1323269
public <R> R getHeader(String name, R defaultValue) {
        if (headers().contains(name)) {
            return getHeader(name);
        } else {
            return defaultValue;
        }
    }
338633
public Collection<Object> getPropertyOrDefault(final String name, final Collection<Object> defaultValues) {
        if (this.properties.containsKey(name)) {
            return this.properties.get(name);
        }
        return defaultValues;
    }
98502
public int getInteger(String name, int defaultValue) {
        try {
            String value = getString(name, null);
            if (!StringUtils.isNullOrEmpty(value)) {
                return Integer.parseInt(value.trim());
            }
        } catch (NumberFormatException e) {
            log.warn("Failed to parse integer for " + name + USING_DEFAULT_OF
                + defaultValue);
        }

        return defaultValue;
    }
1051747
public static Float toFloat(Object value, Float defaultValue) {
		return convert(Float.class, value, defaultValue);
	}
553089
public double getNumber(String nameOfField, double defaultValue) {
		Double value = ((Double)numericData.get(nameOfField));
		
		if (value == null) {
			return defaultValue;
		}
		
		return value.doubleValue();
	}
912748
@Override
    public float getFloatValue( final String    key,
                                final float     defaultValue )
    {
        return formatFloatValue( key, getFormattedPropValue( key ), defaultValue );
    }