String.fromCodePoint(). Fix #219.

This commit is contained in:
Bob Nystrom
2015-03-27 07:43:36 -07:00
parent 373770a8d5
commit 7d45dda383
23 changed files with 166 additions and 43 deletions
+15 -11
View File
@@ -1,6 +1,21 @@
^title Num Class
^category core
## Static Methods
### 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.
### Num.**pi**
The value of π.
## Methods
### **abs**
The absolute value of the number.
@@ -131,14 +146,3 @@ from the beginning number to the ending number not including the ending number.
IO.print(range.min) // 1.2
IO.print(range.max) // 3.4
IO.print(range.isInclusive) // false
### 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.
### Num.**pi**
The value of π.