123.456
54321
{someNumber -> f:format.currency(thousandsSeparator: ',', currencySign: '€')}
{someNumber -> f:format.currency(currencySign: '€', forceLocale: true)}
{someNumber -> f:format.currency(currencySign: 'EUR', forceLocale: 'de_DE')}
Показать файл
Открыть проект
Свойство | Тип | Описание | |
---|---|---|---|
$numberFormatter |
Метод | Описание | |
---|---|---|
render ( string $currencySign = '', string $decimalSeparator = ',', string $thousandsSeparator = '.' ) : string |
public render ( string $currencySign = '', string $decimalSeparator = ',', string $thousandsSeparator = '.' ) : string | ||
$currencySign | string | (optional) The currency sign, eg $ or €. |
$decimalSeparator | string | (optional) The separator for the decimal point. |
$thousandsSeparator | string | (optional) The thousands separator. |
Результат | string | the formatted amount. |