code: public float getFloat(String name, float defaultValue) {
      String valueString = getTrimmed(name);
      if (valueString == null) {
        return defaultValue;
      }
      return Float.parseFloat(valueString);
    }
docs: Get the value of the <code>name</code> property as a <code>float</code>.
  If no such property exists, the provided default value is returned,
  or if the specified value is not a valid <code>float</code>,
  then an error is thrown.
  
  @param name property name.
  @param defaultValue default value.
  @throws NumberFormatException when the value is invalid
  @return property value as a <code>float</code>,
  or <code>defaultValue</code>.