Skip to content

formatAmount

formatAmount(amount, currency?): string

Defined in: utils/format/formatAmount.ts:11

Format a numeric amount as a localized currency string

number

The raw numeric amount to format

Currency

Optional currency config; defaults to EUR/fr-FR when omitted

string

Localized currency string (e.g. “1 500 €”, “$1,500”)