![]() |
|
Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Answer: How do I create/detect/handle Infinity?by shmem (Chancellor) |
on Jul 25, 2009 at 11:04 UTC ( #783158=categorized answer: print w/replies, xml ) | Need Help?? |
Q&A > math > How do I create/detect/handle Infinity? - Answer contributed by shmem
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 ;-)
|
|