Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: How do I create/detect/handle Infinity?by shmem (Chancellor) |
on Jul 25, 2009 at 11:04 UTC ( [id://783158]=note: print w/replies, xml ) | Need Help?? |
Creating Inf/NaN:
Detecting Inf/NaN: since they are numeric values, Inf and NaN can be tested for with the numeric equality/inequality operators == and !=. For Inf, greater and less also work. Handling: not useful ;-)
In Section
Seekers of Perl Wisdom
|
|