First commit of partial RosettaCode contents.
Pushing this for testing purposes. Lots of work still needed.
This commit is contained in:
commit
1e05ecd7ee
781 changed files with 9080 additions and 0 deletions
11
Task/Infinity/Scala/infinity.scala
Normal file
11
Task/Infinity/Scala/infinity.scala
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
scala> 1 / 0.
|
||||
res2: Double = Infinity
|
||||
|
||||
scala> -1 / 0.
|
||||
res3: Double = -Infinity
|
||||
|
||||
scala> 1 / Double.PositiveInfinity
|
||||
res4: Double = 0.0
|
||||
|
||||
scala> 1 / Double.NegativeInfinity
|
||||
res5: Double = -0.0
|
||||
Loading…
Add table
Add a link
Reference in a new issue