code: function(val, req, attribute) {
      if (val) {
        req = parseFloat(req);
  
        var size = this.getSize();
  
        return size === req;
      }
  
      return true;
    }
docs: compares the size of strings with numbers, compares the value