dcsimg

How do I test if a number is infinity or not a number? The == operator doesn't work.

John Zukowski

You need to check with the appropriate isInfinite() or isNan() method. You can't directly test for those values.