/** * Filter value * * @param float $value * @return string */ public function filter($value) { $value = $this->_localeFormat->getNumber($value); $value = $this->priceCurrency->round($this->_rate * $value); $value = sprintf("%f", $value); return $this->_currency->toCurrency($value); }
/** * Filter value * * @param float $value * @return string */ public function filter($value) { $value = $this->_localeFormat->getNumber($value); $value = $this->_storeManager->getStore()->roundPrice($this->_rate * $value); $value = sprintf("%f", $value); return $this->_currency->toCurrency($value); }