WoW:API tonumber: Difference between revisions
Jump to navigation
Jump to search
tonumber() -Documentation by Two-
No edit summary |
No edit summary |
||
Line 18: | Line 18: | ||
tonumber("argqerg") | tonumber("argqerg") | ||
--Returns nil | --Returns nil | ||
---- | ---- | ||
{{ | {{WoW API}} | ||
Revision as of 05:57, 4 January 2006
- Arguments
- tonumber(text)
- text (string) - this value will be converted to a numeric value.
- Returns
- The argument as a numeric value or nil if the value cannot be converted.
- Examples
tonumber("123") --Returns 123
tonumber("argqerg") --Returns nil