public function toCommon(int $amount, bool $format = true): string
    {
        $money          = $this->castMoney($amount, $this->getCurrencySwiftCode());
        $moneyFormatter = new DecimalMoneyFormatter(new ISOCurrencies());

        return ($format) ?
        number_format($moneyFormatter->format($money), 2, '.', ',') :
        $moneyFormatter->format($money);
    }
public function toCommon(int $amount, bool $format = true): string
    {
        $money          = $this->castMoney($amount, $this->getCurrencySwiftCode());
        $moneyFormatter = new DecimalMoneyFormatter(new ISOCurrencies());

        return ($format) ?
        number_format($moneyFormatter->format($money), 2, '.', ',') :
        $moneyFormatter->format($money);
    }
public function toCommon ( int $ amount , bool $ format = true ) : string { $ money = $ this -> castMoney ( $ amount , $ this -> getCurrencySwiftCode ( ) ) ; $ moneyFormatter = new DecimalMoneyFormatter ( new ISOCurrencies ( ) ) ; return ( $ format ) ? number_format ( $ moneyFormatter -> format ( $ money ) , 2 , '.' , ',' ) : $ moneyFormatter -> format ( $ money ) ; }
Convert integer money to common view for the system
Instead of 700000, to 7000.

@param int $amount Integer money representation

@return string Return readable format for human
Convert integer money to common view for the system Instead of 700000 to 7000 .