TD_ISINF returns 1 if the argument is a positive or negative infinite value, and 0 if the argument is not infinite.