public function formatNumber($amount, array $currency)
    {
        $rounded = $this->round(abs($amount), $currency);
        return number_format($rounded, $currency['decimals'], $currency['decimal_separator'], $currency['thousands_separator']);
    }
public function formatNumber($amount, array $currency)
    {
        $rounded = $this->round(abs($amount), $currency);
        return number_format($rounded, $currency['decimals'], $currency['decimal_separator'], $currency['thousands_separator']);
    }
public function formatNumber ( $ amount , array $ currency ) { $ rounded = $ this -> round ( abs ( $ amount ) , $ currency ) ; return number_format ( $ rounded , $ currency [ 'decimals' ] , $ currency [ 'decimal_separator' ] , $ currency [ 'thousands_separator' ] ) ; }
Format an amount with grouped thousands
@param int|float $amount
@param array $currency
@return string
Format an amount with grouped thousands