Common/Util/Formatter.php
public function currency(float $number, string $currency = null): string
    {
        return $this->getCurrencyFormatter()->formatCurrency($number, $currency ? $currency : $this->currency);
    }
public function currency(float $number, string $currency = null): string
    {
        return $this->getCurrencyFormatter()->formatCurrency($number, $currency ? $currency : $this->currency);
    }
Formats the given currency number for display.

@param float  $number
@param string $currency

@return string