ToNumber
From OxeyeWiki
(Difference between revisions)
Jeb (Talk | contribs)
(Created page with '{{GUIMethod | WChar:toNumber() | Converts the string object to a number, if possible. Currently this number will have up to 2 decimals. In future implementations, there may be wa...')
(Created page with '{{GUIMethod | WChar:toNumber() | Converts the string object to a number, if possible. Currently this number will have up to 2 decimals. In future implementations, there may be wa...')
Latest revision as of 23:14, 8 March 2009
|
WChar:toNumber() | ||
|
Converts the string object to a number, if possible. Currently this number will have up to 2 decimals. In future implementations, there may be ways of controlling this... | ||
| Parameter | Expected Type | Description |
| No parameters | ||
| Returns | ||
|
Returns the number value of the text object, or 0 if it's not possible to convert the object to a number. | ||
Example
local text = WChar(math.pi) local pi = text:toNumber()