Add .isInfinity and .isInteger to Num.
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
System.print(123.isInfinity) // expect: false
|
||||
System.print((1/0).isInfinity) // expect: true
|
||||
System.print((-10/0).isInfinity) // expect: true
|
||||
Reference in New Issue
Block a user