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
(optional) The currency sign, eg $ or .
decimalSeparator string
(optional) The separator for the decimal point.
thousandsSeparator string
(optional) The thousands separator.
prependCurrency boolean
(optional) Select if the curreny sign should be prepended
separateCurrency boolean
(optional) Separate the currency sign from the number by a single space, defaults to true due to backwards compatibility
decimals integer
(optional) Set decimals places.