public function format($value, $valueCurrency = null, $decimal = true, $symbol = true)
    {
        if (null === $valueCurrency) {
            $valueCurrency = $this->getConverter()->getDefaultCurrency();
        }

        return $this->getFormatter()->format($value, $valueCurrency, $decimal, $symbol);
    }
public function format($value, $valueCurrency = null, $decimal = true, $symbol = true)
    {
        if (null === $valueCurrency) {
            $valueCurrency = $this->getConverter()->getDefaultCurrency();
        }

        return $this->getFormatter()->format($value, $valueCurrency, $decimal, $symbol);
    }
public function format ( $ value , $ valueCurrency = null , $ decimal = true , $ symbol = true ) { if ( null === $ valueCurrency ) { $ valueCurrency = $ this -> getConverter ( ) -> getDefaultCurrency ( ) ; } return $ this -> getFormatter ( ) -> format ( $ value , $ valueCurrency , $ decimal , $ symbol ) ; }
Format the given value.

@param mixed   $value
@param string  $valueCurrency  $value currency code
@param boolean $decimal        show decimal part
@param boolean $symbol         show currency symbol
@return string
Format the given value .