src/Bundle/Common/Bag/ValueBag.php
public function fetchFloat(string $key, float $default = 0.0, int $precision = 2): float
    {
        return round(floatval($this->fetch($key, $default)), $precision);
    }
public function fetchFloat(string $key, float $default = 0.0, int $precision = 2): float
    {
        return round(floatval($this->fetch($key, $default)), $precision);
    }
public function fetchFloat ( string $ key , float $ default = 0.0 , int $ precision = 2 ) : float { return round ( floatval ( $ this -> fetch ( $ key , $ default ) ) , $ precision ) ; }
Get parameter value converted to float with precision.

@param string $key
@param float $default The default value if parameter does not exist
@param int $precision The optional number of decimal digits to round to
@return float
Get parameter value converted to float with precision .