Skip to content

formatMoney

formatMoney(money, locale?): string | undefined

Formats a price in the reader’s locale from minor units and the currency’s exponent, never by joining strings. null (an unpriced variant) and undefined give undefined: no price is drawn, and never zero.

MoneyLike | null | undefined

string

string | undefined