Is that reliable ? ... assuming, of course, that $inf is in fact + infinity, and that there are no bugs present.unless ($x <= $inf) { print "\$x is definitely a NaN\n" } else { print "\$x is definitely NOT a NaN\n" }
In reply to Re^2: Answer: How do I create/detect/handle Infinity?
by syphilis
in thread How do I create/detect/handle Infinity?
by jdporter
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |