Note that any sufficiently large number will suffice instead of (~0 >> 1).my $inf = exp(~0 >> 1); my $nan = $inf / $inf; my $neg_inf = -$inf;
In reply to Re: How to create nan/inf
by repellent
in thread How to create nan/inf
by syphilis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |