C_StringUtil. GetDefaultAbbreviationBreakpoints
functionimplementedavailable in: camelot
Returns the default breakpoints used to abbreviate large numbers. · description by wowlua
function C_StringUtil.GetDefaultAbbreviationBreakpoints( locale: WowLocale?): NumberAbbreviationBreakpoint[]Parameters
| name | type |
|---|---|
locale | WowLocale? |
Returns
breakpoints · NumberAbbreviationBreakpoint[]
| field | type | description |
|---|---|---|
breakpoint | number | Breakpoints should generally be specified as pairs, with one at the named order (1,000) with fractionDivisor = 10, and one a single order higher (eg. 10,000) with fractionDivisor = 1., This ruleset means numbers like '1234' will be abbreviated to '1.2k' and numbers like '12345' to '12k'. |
abbreviation | string | Abbreviation name to be looked up as a global string. |
significandDivisor | number | significandDivisor and fractionDivisor should multiply such that they become equal to a named order of magnitude, such as thousands or millions. |
fractionDivisor | number | |
abbreviationIsGlobal | boolean | Defaults to true. Set to false to skip the global string lookup and use the raw abbreviation string when formatting results Default: true. |
In wowlua's emulated client
implementedwowlua models the system behind it. what the statuses mean
Restrictions
sources
Signature and flags: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (Localization system, camelot 1.60.1). Description: written by wowlua where no documentation describes the entry.