Skip to content

Vibe coding a plugin? Teach your agent Modlumi first. Works with Claude Code, Codex, Cursor and more.

NumberFormat

How the user’s regional settings write numbers, from PluginContext.numberFormat.

readonly decimal: string

Separates a number’s whole part from its fraction, such as "." or ",".


readonly group: string

Separates digit groups, such as ",", "." or a narrow space; empty when the user’s settings don’t group digits.


readonly grouping: readonly number[]

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.


readonly groupingRepeats: 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.


readonly list: string

Separates list items, such as CSV columns spreadsheets read: "," or ";".