code: public Float getFloat(String name) {
          Object o = get(name);
          if (o instanceof Number) {
              return ((Number)o).floatValue();
          }
  
          if (o != null) {
              try {
                  String string = o.toString();
                  if (string != null) {
                      return Float.parseFloat(string);
                  }
              }
              catch (NumberFormatException e) {}
          }
          return null;
      }
docs: Helper method for obtaining float value from parameter
  @param name The name of the parameter
  @return The double value or null if there isn't one