debugging doubles

Hi,

when I debug, some of the doubles are shown fine and right in the debugging window but some doubles are shown like "-1.#IND000000000000". why is it so and how can i change them to be displayed in the right mode.

best wishes



Answer this question

debugging doubles

  • Dave Yasko

     

    A double variable *can* have the value -1.#IND000000000000 (It's not  a wrong output by the "Debugging Window"). It simply states that the variable has an undefined value due to some *mathmatically* wrong calculations (For example a 0.0/0.0 division would give such a value)



  • Shril Pyrrho

    You also can get this output if the double variable is in scope but has not yet been initialized.

  • debugging doubles