Add .isInfinity and .isInteger to Num.

This commit is contained in:
Bob Nystrom
2015-09-30 08:41:43 -07:00
parent 5129597c63
commit bacbd85543
4 changed files with 44 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
System.print(123.isInfinity) // expect: false
System.print((1/0).isInfinity) // expect: true
System.print((-10/0).isInfinity) // expect: true