code: public float getFloat(String key, float defaultValue) {
      if (containsKey(key)) {
        return Float.parseFloat(get(key));
      } else {
        return defaultValue;
      }
    }
docs: Gets the float value for <code>key</code> or <code>defaultValue</code> if not found.
  
  @param key key to get value for
  @param defaultValue default value if key not found
  @return value or <code>defaultValue</code> if not found