code: public Item withFloat(String attrName, float val) {
          checkInvalidAttrName(attrName);
          return withNumber(attrName, Float.valueOf(val));
      }
docs: Sets the value of the specified attribute in the current item to the
  given value.