Twig/CurrencyExtension.php
public function formatPrice(float $price, $baseCurrency = null, $targetCurrency = null, $locale = null, $quantity = 1) : string
    {
        return $this->helper->convertAndFormat($price, $baseCurrency, $targetCurrency, $quantity, $locale);
    }
public function formatPrice(float $price, $baseCurrency = null, $targetCurrency = null, $locale = null, $quantity = 1) : string
    {
        return $this->helper->convertAndFormat($price, $baseCurrency, $targetCurrency, $quantity, $locale);
    }
public function formatPrice ( float $ price , $ baseCurrency = null , $ targetCurrency = null , $ locale = null , $ quantity = 1 ) : string { return $ this -> helper -> convertAndFormat ( $ price , $ baseCurrency , $ targetCurrency , $ quantity , $ locale ) ; }
Formats the given amount

@param int|float   $price
@param null|string $baseCurrency
@param null|string $targetCurrency
@param null|string $locale

@return string
Formats the given amount