ViewHelper Documentation
format.currency
Formats a given float to a currency representation.
= Examples =
<f:format.currency>123.456</f:format.currency>
<f:format.currency currencySign="$" decimalSeparator="." thousandsSeparator="," prependCurrency="true" separateCurrency="false" decimals="2">54321</f:format.currency>
{someNumber -> f:format.currency(thousandsSeparator: ',', currencySign: '')}
Arguments
currencySign string
The currency sign, eg $ or .
decimalSeparator string
The separator for the decimal point.
thousandsSeparator string
The thousands separator.
prependCurrency anySimpleType
Select if the currency sign should be prepended
separateCurrency anySimpleType
Separate the currency sign from the number by a single space, defaults to true due to backwards compatibility
decimals anySimpleType
Set decimals places.