v0.13.8

C_StringUtil.GetDefaultAbbreviationBreakpoints

functionimplementedavailable in: camelot

Returns the default breakpoints used to abbreviate large numbers. · description by wowlua

signaturewowlua
function C_StringUtil.GetDefaultAbbreviationBreakpoints(    locale: WowLocale?): NumberAbbreviationBreakpoint[]

Parameters

nametype
localeWowLocale?

Returns

breakpoints · NumberAbbreviationBreakpoint[]

NumberAbbreviationBreakpoint
fieldtypedescription
breakpointnumberBreakpoints 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'.
abbreviationstringAbbreviation name to be looked up as a global string.
significandDivisornumbersignificandDivisor and fractionDivisor should multiply such that they become equal to a named order of magnitude, such as thousands or millions.
fractionDivisornumber
abbreviationIsGlobalbooleanDefaults 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.