TD_ISFINITE returns 1 if the argument is finite, and 0 if the argument is infinite or not a number (NaN).