Decimal number to floating-point represention?

  • Thread starter Thread starter ming2194
  • Start date Start date
AI Thread Summary
The discussion centers on converting decimal numbers to floating-point representation, specifically within the context of programming in C. It highlights that floats are represented using 32 bits and doubles with 64 bits, adhering to the IEEE 754 standard. The accuracy of a resource linked for understanding this conversion is affirmed, indicating that it correctly describes the storage of float (32-bit) values.
ming2194
Messages
31
Reaction score
0
Technology news on Phys.org
What exactly are you trying to do? In C, floats are stored in 32 bits, and doubles are stored in 64 bits according to the IEEE 754 specification. The description that is given in the link you provided seems accurate to me for float (32-bit) storage.
 
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...
I have a quick questions. I am going through a book on C programming on my own. Afterwards, I plan to go through something call data structures and algorithms on my own also in C. I also need to learn C++, Matlab and for personal interest Haskell. For the two topic of data structures and algorithms, I understand there are standard ones across all programming languages. After learning it through C, what would be the biggest issue when trying to implement the same data...
Back
Top