Merge branch 'num-features' of https://github.com/underscorediscovery/wren into underscorediscovery-num-features

This commit is contained in:
Bob Nystrom
2017-01-20 07:20:55 -08:00
4 changed files with 16 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
System.print(3.log) // expect: 1.0986122886681
System.print(100.log) // expect: 4.6051701859881
System.print((-1).log) // expect: nan
+4
View File
@@ -0,0 +1,4 @@
System.print(2.pow(4)) // expect: 16
System.print(2.pow(10)) // expect: 1024
System.print(1.pow(0)) // expect: 1