formatPrice
formatPrice(
amount,currency,language?):string
Defined in: facts.ts:396
Format a stated amount for display. Falls back to the raw amount when the currency is unknown, the amount is not a plain decimal, or Intl refuses the language or currency.
Parameters
Section titled “Parameters”amount
Section titled “amount”string
currency
Section titled “currency”string | undefined
language?
Section titled “language?”string = "en"
Returns
Section titled “Returns”string