CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    May 1999
    Posts
    23

    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.


  2. #2
    Join Date
    Apr 1999
    Location
    India
    Posts
    15

    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.


  3. #3
    Guest

    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.


  4. #4
    Join Date
    May 1999
    Location
    Mid-West
    Posts
    50

    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
  •  





Click Here to Expand Forum to Full Width

Featured