Neos\Flow\Validation\Validator\FloatValidator::isValid PHP Method

isValid() protected method

The given value is valid if it is of type float or a string matching the regular expression [0-9.e+-]
protected isValid ( mixed $value ) : void
$value mixed The value that should be validated
return void
    protected function isValid($value)
    {
        if (is_float($value)) {
            return;
        }
        if (!is_string($value) || strpos($value, '.') === false || preg_match('/^[0-9.e+-]+$/', $value) !== 1) {
            $this->addError('A valid float number is expected.', 1221560288);
        }
    }
FloatValidator