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

  • Thread starter Thread starter smslca
  • Start date Start date
  • Tags Tags
    Program
AI Thread Summary
The discussion centers on the appearance of specific symbols in a C program compiled with Dev-C++. The symbols in question are -1.#IND00000000 and -1.#QNAN0. The latter, QNAN0, stands for "Not a Number," indicating that the floating point value is invalid, often due to overflow or underflow conditions. The other symbol, -1.#IND00000000, represents an indeterminate value, which can occur in various scenarios, such as division by zero or invalid operations. For further details on these representations, the IEEE 754 standard on floating point numbers is referenced.
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
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
hi; i purchased 3 of these, AZDelivery 3 x AZ-MEGA2560-Board Bundle with Prototype Shield and each is reporting the error message below. I have triple checked every aspect of the set up and all seems in order, cable devices port, board reburn bootloader et al . I have substituted an arduino uno and it works fine; could you help please Thanks Martyn 'avrdude: ser_open(): can't set com-state for "\\.\COM3"avrdude: ser_drain(): read error: The handle is invalid.avrdude: ser_send(): write...
Back
Top