public function decimal(array $options) {
        if (ctype_digit($this->elementData))
            return true;

        $this->addError($this->checkMessage('Value can only contain numbers and a dot', $options));
        return false;
    }
public function decimal(array $options) {
        if (ctype_digit($this->elementData))
            return true;

        $this->addError($this->checkMessage('Value can only contain numbers and a dot', $options));
        return false;
    }
public function decimal ( array $ options ) { if ( ctype_digit ( $ this -> elementData ) ) return true ; $ this -> addError ( $ this -> checkMessage ( 'Value can only contain numbers and a dot' , $ options ) ) ; return false ; }
Checks if the content of the element is decimal
@param string $name Name of the element to filter
@param  array $options Keys may include [message]
@return boolean
Checks if the content of the element is decimal