Interface: FormatOptions
Defined in: number/types.ts:28
Options for formatting numbers.
Properties
decimals?
readonlyoptionaldecimals:number
Defined in: number/types.ts:33
Number of decimal places to display.
Default
2
locale?
readonlyoptionallocale:string
Defined in: number/types.ts:45
Locale to use for formatting.
Default
'en-US'
maximumFractionDigits?
readonlyoptionalmaximumFractionDigits:number
Defined in: number/types.ts:55
Maximum number of decimal places.
minimumFractionDigits?
readonlyoptionalminimumFractionDigits:number
Defined in: number/types.ts:50
Minimum number of decimal places.
useGrouping?
readonlyoptionaluseGrouping:boolean
Defined in: number/types.ts:39
Whether to use grouping separators (e.g., commas).
Default
true