it has come to my attention that when it comes to doubles, there is a representation for infinity or "not a number" in the environment I am using.
In C, is there a way to detect this or is this implimentation specific? It would also be good if in comparisons, when it is nan that it would be greater than the number I was comparing it to instead of needing a special case to test for it. Does nan work as infinity in comparisons also?
Thanks in advance