Documentation / @frak-labs/core-sdk / index / formatAmount
Function: formatAmount()
formatAmount(
amount,currency?):string
Defined in: utils/formatAmount.ts:11
Format a numeric amount as a localized currency string
Parameters
amount
number
The raw numeric amount to format
currency?
Optional currency config; defaults to EUR/fr-FR when omitted
Returns
string
Localized currency string (e.g. "1 500 €", "$1,500")