|
-
May 17th, 1999, 02:56 AM
#1
A strange error as -1.#IND0
Has anyone already had this error. When using the debugger, the return of
( F * 3.14295 ) / 180 where F = 25 (double) is -1.#IND0 and I don't know why .
Thanks for your help.
-
May 17th, 1999, 05:04 AM
#2
Re: A strange error as -1.#IND0
I think this is b'coz of some out of range problem.
1) Check the proper type of the variables like F.
2) Or check the type of the variable which is storing the result.
-
May 17th, 1999, 07:22 AM
#3
Re: A strange error as -1.#IND0
-1.#IND0 looks like one of the IEEE special values. These are +Infinity (=1.0/0.0), -Infinity (=-1.0/0.0) and NaN (Not a Number, i.e. an invalid floating-point number). I can't remember which of these prints as -1.#IND0, and I can't see why your code should produce any of them.
-
May 17th, 1999, 09:55 AM
#4
Re: A strange error as -1.#IND0
I actually do not get this error when i tried. However since the number ends up being 33333.... at the end due to the divide if you use an int as the 'result' then you may run into a problem...what version of C++ are you using??
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|