NumberFormat
How the user’s regional settings write numbers, from PluginContext.numberFormat.
Properties
Section titled “Properties”decimal
Section titled “decimal”
readonlydecimal:string
Separates a number’s whole part from its fraction, such as "." or ",".
readonlygroup:string
Separates digit groups, such as ",", "." or a narrow space; empty when the user’s
settings don’t group digits.
grouping
Section titled “grouping”
readonlygrouping: readonlynumber[]
The sizes of the digit groups, from the decimal mark leftwards: [3] for 1,234,567 and
[3, 2] for India’s 12,34,567. The last size repeats unless
NumberFormat.groupingRepeats is false. Empty when the user’s settings don’t group
digits.
groupingRepeats
Section titled “groupingRepeats”
readonlygroupingRepeats:boolean
Whether the last size in NumberFormat.grouping repeats for the rest of the digits,
as it does for almost every region. When false, as some Windows and POSIX settings ask,
the digits left of the listed groups stay together: [3] writes 1234,567.
readonlylist:string
Separates list items, such as CSV columns spreadsheets read: "," or ";".