public function get_numeric(string $key, $default = null)
    {
        return \filter_var(
            $this->get($key, $default),
            FILTER_SANITIZE_NUMBER_FLOAT,
            FILTER_FLAG_ALLOW_FRACTION
        );
    }
public function get_numeric(string $key, $default = null)
    {
        return \filter_var(
            $this->get($key, $default),
            FILTER_SANITIZE_NUMBER_FLOAT,
            FILTER_FLAG_ALLOW_FRACTION
        );
    }
public function get_numeric ( string $ key , $ default = null ) { return \ filter_var ( $ this -> get ( $ key , $ default ) , FILTER_SANITIZE_NUMBER_FLOAT , FILTER_FLAG_ALLOW_FRACTION ) ; }
Gets a numeric value from the bag.

Only digits, decimals and the minus (-) characters are returned.
All other characters are stripped out.

@param  string $key     Item key to fetch.
@param  mixed  $default Default value if the key is not present.
@return string
Gets a numeric value from the bag .