Merge branch 'num-from-string' of git://github.com/gsmaverick/wren into gsmaverick-num-from-string

This commit is contained in:
Bob Nystrom
2015-02-25 06:53:12 -08:00
5 changed files with 40 additions and 2 deletions
+7
View File
@@ -90,3 +90,10 @@ It is a runtime error if `other` is not a number.
### **...**(other) operator
**TODO**
### Num.**fromString**(value)
Attempts to parse `value` as a decimal literal and return it as an instance of
`Num`. If the number cannot be parsed `null` will be returned.
It is a runtime error if `value` is not a string.