What is the meaning of -1.#IND00 and -1.#QNAN0? Rome did not create a great empire by having meetings, they did it by
killing all those who opposed them.
You would obtain such results by trying, let's say, sqrt(-1).
NAN means Not A Number.
Same result will be obtained when doing 10/0, for instance.
These strings are just cookies to be seen in the standard err; probably the best way to check for a faulty outcome of such an operation would be to check the result against the min/max double values definded in <limits.h>. Of course, if your program is still running after such a disaster!
But hey... the BEST thing is Not to get there in the first place!
Cheers,
--Razvan [red]Nosferatu[/red]
We are what we eat...
There's no such thing as free meal... once stated: methane@personal.ro
Well, I found related articles by looking for IND00. The most interesting is called
"FIX: Calling a Function Returning double May Not Pop FPU Stack",
which was just what was happening to my code (I was still in the debug version - /Od).
--Razvan [red]Nosferatu[/red]
We are what we eat...
There's no such thing as free meal... once stated: methane@personal.ro
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.