I am working with devcpp, and have written a c program

  • Thread starter Thread starter smslca
  • Start date Start date
  • Tags Tags
    Program
Click For Summary

Discussion Overview

The discussion revolves around the interpretation of specific symbols encountered in a C program compiled using Dev-C++. Participants seek to understand the meaning of these symbols, particularly in the context of floating-point representations and potential errors during execution.

Discussion Character

  • Technical explanation
  • Conceptual clarification

Main Points Raised

  • One participant inquires about the symbols -1.#IND00000000 and -1.#QNAN0, seeking clarification on their meanings.
  • Another participant suggests that -1.#QNAN0 indicates "Not a Number" (QNAN), which may arise from overflow or underflow conditions.
  • A third participant expresses gratitude for the information provided, indicating it was somewhat helpful.
  • A fourth participant references the IEEE 754 standard for floating-point numbers, suggesting it as a resource for further information.

Areas of Agreement / Disagreement

There is no consensus on the interpretation of the symbol -1.#IND00000000, as one participant expresses uncertainty about its meaning. The discussion includes both agreement on the definition of QNAN and uncertainty regarding the other symbol.

Contextual Notes

Participants do not fully resolve the meanings of the symbols, and there is a lack of detailed exploration regarding the specific conditions that lead to their appearance.

Who May Find This Useful

Individuals working with C programming, particularly those dealing with floating-point arithmetic and error handling in Dev-C++, may find this discussion relevant.

smslca
Messages
63
Reaction score
0
I am working with devcpp, and have written a c program. After I had compiled it and make it to run, I got these symbols at some places (i.e for some values of input) . I want to know what are they and what do they represent.

symbols:
-1.#IND00000000
-1.#QNAN0
 
Technology news on Phys.org


smslca said:
I am working with devcpp, and have written a c program. After I had compiled it and make it to run, I got these symbols at some places (i.e for some values of input) . I want to know what are they and what do they represent.

symbols:
-1.#IND00000000
-1.#QNAN0

The QNAN0 is short for "Not a Number": it represents that the floating point number is not a valid one. This could be because of overflow (number too big) or underflow (number too small).

Not sure about the other one (its been a while since I've seen that error).
 


thanks it helps me somewhat
 

Similar threads

Replies
22
Views
3K
  • · Replies 25 ·
Replies
25
Views
4K
Replies
6
Views
3K
  • · Replies 17 ·
Replies
17
Views
3K
Replies
12
Views
3K
  • · Replies 29 ·
Replies
29
Views
3K
  • · Replies 22 ·
Replies
22
Views
2K
Replies
86
Views
2K
  • · Replies 32 ·
2
Replies
32
Views
4K
Replies
65
Views
5K