c++ test whether double is #INF
I would like to isolate behavior when some double value is NaN or #INF. To detect NaN, I test

    doubleVal != doubleVal

. What about #INF? Will this test be true when doubleVal is #INF?

Thanks and regards.
c++ test whether double is #INF
===

I would like to isolate behavior when some double value is NaN or #INF. To detect NaN, I test

    doubleVal != doubleVal

. What about #INF? Will this test be true when doubleVal is #INF?

Thanks and regards.