my $num = Inf; given $num { say "+Inf" when Inf; say "-Inf" when -Inf; say "NaN" when NaN; }
Works in Rakudo today.
In reply to Re: How do I create/detect/handle Infinity?
by moritz
in thread How do I create/detect/handle Infinity?
by jdporter
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |