WoW:API tonumber

From AddOn Studio
Revision as of 14:35, 28 August 2005 by WoWWiki>WoWWiki-Two
Jump to navigation Jump to search
tonumber() -Documentation by Two-

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

Template:WoW API