WoW:API tonumber: Difference between revisions
Jump to navigation
Jump to search
tonumber() -Documentation by Two-
mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<center>'''tonumber()''' ''-Documentation by [[user:Two|Two]]-''</center> | |||
---- | |||
;''Arguments'' | |||
:<b>tonumber(text)</b> | |||
::<b>text</b> <i>(string)</i> - this value will be converted to a numeric value. | |||
---- | |||
;''Returns'' | |||
:: The argument as a numeric value or <b>nil</b> if the value cannot be converted. | |||
---- | |||
;''Examples'' | |||
tonumber("123") | |||
--Returns 123 | |||
tonumber("argqerg") | |||
--Returns nil | |||
---- | |||
{{Template:WoW API}} | |||
[[Category:API Functions|tonumber]] | [[Category:API Functions|tonumber]] | ||
[[Category:API String Functions|tonumber]] | [[Category:API String Functions|tonumber]] |
Revision as of 14:35, 28 August 2005
- 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