RosettaCodeData/Task/Infinity/Perl-6/infinity.pl6
2018-06-22 20:57:24 +00:00

2 lines
143 B
Raku

my $x = 1.5/0; # Failure: catchable error, if evaluated will return: "Attempt to divide by zero ...
my $y = (1.5/0).Num; # assigns 'Inf'