In C how to catch when an float = -1.#IO : So I have a problem in my C code where when a float retches infinity it returns -1.#IO 

At first I had no idea what it meant but after a while of searching on stack over flow I found only a total of 3 posts that even mentioned this value let alone how to solve the issue. That is where I lent that this value is what is returned if the float reaches -infinity.

SO the problem is float can onley use numerical values. I can not catch this value

if I put 

    if(value == -1.#IO){...}

the compiler says unexpected #

if i put

    if(value == "-1.#IO"){...}

the compiler says Char string constant '"-1.#IO"' cannot be compared with value
This is obvious because its trying to compare an string with an float 

Now my formula calculates a range of values of which both negative and positive infinity can some times exist. 

So I need to find a way to catch this value when it pops up so I can replace it with an numerical float value  (witch in this case will be 0)

If you want I can add my formula code to this post but I think it is unnecessary for the question.
