Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
11
Task/Infinity/Sidef/infinity.sidef
Normal file
11
Task/Infinity/Sidef/infinity.sidef
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
var a = 1.5/0; # inf
|
||||
say a.is_inf; # true
|
||||
say a.is_pos; # true
|
||||
|
||||
var b = -1.5/0; # -inf
|
||||
say b.is_inf; # true
|
||||
say b.is_neg; # true
|
||||
|
||||
var inf = Math.inf;
|
||||
var ninf = -Math.inf;
|
||||
say (inf == -ninf); # true
|
||||
Loading…
Add table
Add a link
Reference in a new issue