public float getFloat(String key, float def) {
        String value = mValues.get(key);
        if (value != null) {
            try {
                return Float.parseFloat(value);
            } catch (NumberFormatException e) {
                // fallthrough
            }
        }
        return def;
    }
Get the value for key as a float.

@param key The key to lookup.
@param def The value to return if the key was not found, or the value was not a float.
@return the float value associated with the key.
android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/util/KeyValueListParser.java