public float getFloat(String key, float def) {
        Object tmp = objectMap.get(key);
        return tmp != null && tmp instanceof Number ? ((Number) tmp)
                .floatValue() : def;
    }
public float getFloat ( String key , float def ) { Object tmp = objectMap . get ( key ) ; return tmp != null && tmp instanceof Number ? ( ( Number ) tmp ) . floatValue ( ) : def ; }
get float value.

@param key key.
@param def default value.
@return value or default value.