WellCommerce\Bundle\CurrencyBundle\Importer\AbstractExchangeRatesImporter::formatExchangeRate PHP Method

formatExchangeRate() protected method

Formats the exchange rate
protected formatExchangeRate ( float $rate ) : string
$rate float
return string
    protected function formatExchangeRate($rate)
    {
        return number_format($rate, 4, '.', '');
    }