Is there a good way to catch all the NaN type errors like:

- 1.#IND
- -1.#IND
- -1.#INF
- 1.#INF
- etc....

I can't do:

because the # calls up compiler errors.Code:`if (var == -1.#IND)`

Anyhow, i'm looking for a suggestion for a catchall function for numerical explosion errors that returns 0 if it's a normal double and 1 otherwise. Hope you can help!

Thanks!