public function castFloat()
    {
        $castFunction = function ($value) {
            return (float) $value;
        };

        if (is_numeric($this->value)) {
            return $castFunction($this->value);
        }

        return $this->handleMismatch($castFunction, 'double');
    }
public function castFloat()
    {
        $castFunction = function ($value) {
            return (float) $value;
        };

        if (is_numeric($this->value)) {
            return $castFunction($this->value);
        }

        return $this->handleMismatch($castFunction, 'double');
    }
public function castFloat ( ) { $ castFunction = function ( $ value ) { return ( float ) $ value ; } ; if ( is_numeric ( $ this -> value ) ) { return $ castFunction ( $ this -> value ) ; } return $ this -> handleMismatch ( $ castFunction , 'double' ) ; }
Casts the value to a float.

@return float
Casts the value to a float .