code: public Float loadPreferenceAsFloat(String key, Float defaultValue) {
  		Float value = defaultValue;
  		if (hasPreference(key)) {
  			value = getSharedPreferences().getFloat(key, 0);
  		}
  		logLoad(key, value);
  		return value;
  	}
docs: Retrieve a Float value from the preferences.
  
  @param key The name of the preference to retrieve
  @param defaultValue Value to return if this preference does not exist
  @return the preference value if it exists, or defaultValue.