>wowhelm_
~/forever/addon-api/function/ParseNumber

ParseNumber

documented function · LuaLocaleContextAPI
ParseNumber(text, style) : result

Parses an entire localized number string into a double using the selected non-currency number formatter.

──ARGUMENTS
text
cstring (The localized numeric text to parse with the selected style.)
style
NumberStyle (The number style to parse with; Currency is not accepted here, use ParseCurrency instead.)
──RETURNS
result
number (The numeric value parsed from the localized number text.)
──DETAILS
May Return Nothing
true
Secret Arguments
AllowedWhenTainted
──VERSION HISTORY

Present since at least 1.60.1.70707, the first build we track.