formatAmount
Ce contenu n’est pas encore disponible dans votre langue.
formatAmount(
amount,currency?):string
Defined in: utils/format/formatAmount.ts:11
Format a numeric amount as a localized currency string
Parameters
Section titled “Parameters”amount
Section titled “amount”number
The raw numeric amount to format
currency?
Section titled “currency?”Optional currency config; defaults to EUR/fr-FR when omitted
Returns
Section titled “Returns”string
Localized currency string (e.g. “1 500 €”, “$1,500”)