setAttribute(\NumberFormatter::FRACTION_DIGITS,0);$formatted=$formatter->format($whole,\NumberFormatter::TYPE_INT64);$decimal=$formatter->getSymbol(\NumberFormatter::DECIMAL_SEPARATOR_SYMBOL);} else {$comma=in_array($locale,['cs_CZ','de_DE','pl_PL','fr_FR','es_ES','it_IT','uk','pt_BR','ru_RU'],true);$decimal=$comma?',':'.';$group=in_array($locale,['cs_CZ','pl_PL','uk','ru_RU'],true)?"\u{00A0}":($locale==='fr_FR'?"\u{202F}":($comma?'.':','));$formatted=number_format($whole,0,$decimal,$group);} return ($negative?'−':'').$formatted.($digits?$decimal.str_pad((string)$fraction,$digits,'0',STR_PAD_LEFT):'').' '.$currency; } }