Retrieve a float from bundle.

@param key the key of resource

@return the resource float

@throws MissingResourceException if the requested key is unknown
511530
public float getFloat( String key )
        throws MissingResourceException
    {
        ResourceBundle bundle = getBundle();
        String value = bundle.getString( key );
        try
        {
            return Float.parseFloat( value );
        }
        catch( NumberFormatException nfe )
        {
            throw new MissingResourceException( "Expecting a float value but got " + value,
                                                "java.lang.String",
                                                key
            );
        }
    }
784131
public static float getFloat(final String key, final float def) {
		try {
			return systemRoot.getFloat(fixKey(key), def);
		} catch (final Exception e) {
			// just eat the exception to avoid any system
			// crash on system issues
			return def;
		}
	}
938624
public int getInteger( String key, int defaultValue )
        throws MissingResourceException
    {
        try
        {
            return getInteger( key );
        }
        catch( MissingResourceException mre )
        {
            return defaultValue;
        }
    }
1070954
@CheckResult @NonNull
  public Preference<Float> getFloat(@NonNull String key, @NonNull Float defaultValue) {
    checkNotNull(key, "key == null");
    checkNotNull(defaultValue, "defaultValue == null");
    return new RealPreference<>(preferences, key, defaultValue, FloatAdapter.INSTANCE, keyChanges);
  }
34973
public float getFloat(String name)
    {
        float fval = 0F;
        try {
            fval = Float.valueOf(request.getParameter(name));
        } catch (NumberFormatException e) {}
        
        return fval;
    }
285902
public void setFloat(String key, float value)
    {
        checkKeyIsUniform(key);
        checkFloatNotNaNOrInfinity("value", value);
        NativeLight.setFloat(getNative(), key, value);
    }
1305215
@Override
    public final Float optFloat(final String key, final Float defaultValue) {
        Float result = optFloat(key);
        return result == null ? defaultValue : result;
    }
818518
public int getInteger(String key) throws MissingResourceException {
        String result = getString(key);
        try {
            return Integer.parseInt(result);
        } catch (NumberFormatException nfe) {
            if (tc.isEventEnabled()) {
                Tr.event(tc, "Unable to parse " + result + " as Integer.");
            }
            // DGH20040823: Begin fix for defect 218797 - Source provided by Tom Musta
            // String msg = messages.getString("NLS.integerParseError",
            //                                 "Unable to parse as integer.");
            String msg = getMessages().getString("NLS.integerParseError",
                                                 "Unable to parse as integer.");
            // DGH20040823: End fix for defect 218797 - Source provided by Tom Musta
            throw new MissingResourceException(msg, bundleName, key);
        }
    }
462616
public static String getString(String key) {
        try {
            return RESOURCE_BUNDLE.getString(key);
        } catch (MissingResourceException e) {
            return '!' + key + '!';
        }
    }
13134
public Float getAsNullableFloat(String key) {
		Object value = getAsObject(key);
		return FloatConverter.toNullableFloat(value);
	}
522026
public float getFloat(Enum<?> key, float defaultValue)
    {
        if (key == null)
        {
            return defaultValue;
        }

        return getFloat(key.name(), defaultValue);
    }
854571
public Float getFloatProperty(String key, Float defaultValue) {
        String val = getProperty(key, defaultValue.toString());
        try {
            Float intVal = Float.parseFloat(val);
            return intVal;
        } catch (NumberFormatException e) {
            return defaultValue;
        }
    }
854359
public float getFloat(String key) {
		addToDefaults(key, null);
		String value = getRequired(key);
		return Float.valueOf(value);
	}
721711
@Override
    public final double getDouble(final String key) {
        Double result = optDouble(key);
        if (result == null) {
            throw new ObjectMissingException(this, key);
        }
        return result;
    }
1309000
public char getChar( String key )
        throws MissingResourceException
    {
        ResourceBundle bundle = getBundle();
        String value = bundle.getString( key );

        if( 1 == value.length() )
        {
            return value.charAt( 0 );
        }
        else
        {
            throw new MissingResourceException( "Expecting a char value but got " + value,
                                                "java.lang.String",
                                                key
            );
        }
    }
10131
public function getFloat($key)
	{
		$resolved = false;
		$value = $this->getByKey($key, $this->data, $resolved);
		
		if($resolved)
		{
			return floatval($value);
		}
		
		if(func_num_args() > 1)
		{
			return func_get_arg(1);
		}
		
		throw new \OutOfBoundsException('Configuration setting not found: "' . $key . '"');
	}
863713
public static String get(String key, Object... args) {
        return get(BUNDLE_NAME, key, args);
    }