public static float getFloat(String key, float defaultValue) { String str = Environment.get(key, null); if (str == null) { return defaultValue; }  try { return Float.valueOf(str).floatValue(); } catch (NumberFormatException e) { return defaultValue; }
public static float getFloat(String key) { return getFloat(key, Float.NaN);
    public static float getFloat(String key, float defaultValue) {	String str = Environment.get(key, null);	if (str == null) {	    return defaultValue;	}	try {	    return Float.valueOf(str).floatValue();	}	catch (NumberFormatException e) {	    return defaultValue;	}    }