Swat/SwatFloatEntry.php
public function process()
    {
        parent::process();

        if ($this->value === null) {
            return;
        }

        $float_value = $this->getNumericValue($this->value);

        if ($float_value === null) {
            $this->addMessage($this->getValidationMessage('float'));
        } else {
            $this->value = $float_value;
        }
    }
public function process()
    {
        parent::process();

        if ($this->value === null) {
            return;
        }

        $float_value = $this->getNumericValue($this->value);

        if ($float_value === null) {
            $this->addMessage($this->getValidationMessage('float'));
        } else {
            $this->value = $float_value;
        }
    }
public function process ( ) { parent :: process ( ) ; if ( $ this -> value === null ) { return ; } $ float_value = $ this -> getNumericValue ( $ this -> value ) ; if ( $ float_value === null ) { $ this -> addMessage ( $ this -> getValidationMessage ( 'float' ) ) ; } else { $ this -> value = $ float_value ; } }
Checks to make sure value is a number

If the value of this widget is not a number then an error message is
attached to this widget.
Checks to make sure value is a number