Splitting Up a Real Number

In the C language, the flexible storage provided by a union allows me to access and examine the bits stored in a real number. Due to different data types accessing the same data, I can look at the bits in a float as a long int. From there, I can output the individual bits to see what each one represents, which was covered in last week’s Lesson. In this Lesson, I update the code to examine the individual parts of the binary32 format.
Continue reading →