C_Intl. ParseCurrency
functionguessedavailable in: camelot
Parses an entire localized currency string into a double amount and ISO 4217 currency code.
function C_Intl.ParseCurrency( text: string): CurrencyParseResult?Parameters
| name | type | description |
|---|---|---|
text | string | The localized currency text to parse for both amount and ISO 4217 code. |
Returns
result · CurrencyParseResult? · The numeric amount and ISO 4217 currency code parsed from the localized currency text.
| field | type | description |
|---|---|---|
amount | number | The numeric amount parsed by the currency parser. |
currencyCode | string | The ISO 4217 currency code parsed alongside the amount. |
Blizzard's documentation says it may return nothing.
In wowlua's emulated client
guessedThe answer is worked out from Blizzard's documentation, its UI code and the function's name, and not checked against the client. what the statuses mean
Restrictions
sources
Signature and flags: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (Intl system, camelot 1.60.1). Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.