Skip to main content

Interface: CurrencyOptions

Defined in: number/types.ts:61

Options for currency formatting.

Properties

currency

readonly currency: string

Defined in: number/types.ts:66

Currency code (ISO 4217).

Example

'USD', 'EUR', 'GBP'

decimals?

readonly optional decimals: number

Defined in: number/types.ts:84

Number of decimal places.

Default

2

locale?

readonly optional locale: string

Defined in: number/types.ts:72

Locale to use for formatting.

Default

'en-US'

showSymbol?

readonly optional showSymbol: boolean

Defined in: number/types.ts:78

Whether to display the currency symbol.

Default

true