top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is -1#IND in c++?

+1 vote
2,283 views

What is -1#IND in c++. I'm using double/ float data type to store skewness of some data samples. There I am getting -1#IND for some of skew values, because of that classifier is giving me wrong results...

posted Jun 9, 2014 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button
i didn't understand,will anybody explain me.
I explained in the answer http://tech.queryhome.com/46882/what-is-1%23ind-in-c?show=46954#a46954

Can you be specific about what is not clear.

1 Answer

0 votes

If you get some strange non-numeric output where you're expecting a number, you've either exceeded the finite limits of floating point arithmetic or you've asked for some result that is undefined.

Now coming to your question -
If your operation would generate a larger positive number than could be stored in a double, the operation will return 1.#INF on Windows or inf on Linux. Similarly your code will return -1.#INF or -inf if the result would be a negative number too large to store in a double.

Let me know if this clarifies your doubt.

answer Jun 10, 2014 by Salil Agrawal
Thank you sir...I got it....
is it a error messaga or something else.....
It is a error condition which occurs with float or double as I explained in the answer.
Thank you sir.i got your answer.
ur welcome :)
...