code: public float getFloat(String name, float defaultValue) {
          String valueString = get(name);
          if (valueString == null)
              return defaultValue;
          try {
              return Float.parseFloat(valueString);
          } catch (NumberFormatException e) {
              return defaultValue;
          }
      }
docs: Get the value of the <code>name</code> property as a <code>float</code>.
  If no such property is specified, or if the specified value is not a valid
  <code>float</code>, then <code>defaultValue</code> is returned.
  
  @param name property name.
  @param defaultValue default value.
  @return property value as a <code>float</code>,
  or <code>defaultValue</code>.