model->getAttribute($this->field); if ($value == null || round($value, $this->value) != $value) { return $this->addError('The param :attribute length error'); } return true; } }