Lines Matching refs:rawvalue
95 * @param int|string $rawvalue
99 public function validate($rawvalue)
101 $rawvalue = parent::validate($rawvalue);
102 $rawvalue = str_replace(',', '.', $rawvalue); // we accept both
104 if ((string)$rawvalue != (string)(float) $rawvalue) {
108 if ($this->config['min'] !== '' && (float) $rawvalue < (float) $this->config['min']) {
112 if ($this->config['max'] !== '' && (float) $rawvalue > (float) $this->config['max']) {
116 return $rawvalue;