RosettaCodeData/Task/Infinity/Raku/infinity.raku

3 lines
143 B
Raku
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
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'