Assignment 3
Assignment 3
CLO-3
Q1. Analyze a program that compares two single-precision floating-point numbers and branches
accordingly i.e. greater than, less than and equal to.
Q2. Analyze a program that finds the maximum of two double-precision floating-point numbers
using c.le.d instruction.
Q3. Analyze a program that compares the absolute values of two single-precision floating-point
numbers.
Q4. Analyze a program that finds how many single-precision floating-point numbers in an array
of 5 elements are greater than a given threshold of single-precision floating-point number 𝟒. 𝟎.
Q5. Analyze the value of the bit pattern 0x0C000000 if it is a floating-point number in the IEEE
754 single-precision format.
Q6. Analyze how to represent the decimal number 63.25 as a floating-point number in the IEEE
754 single-precision format. Provide the binary representation.
Q7. Analyze the decimal value represented by the IEEE 754 single-precision bit pattern
0x40480000.
Q8. Analyze how the decimal number -19.5 is represented in the IEEE 754 single-precision
format. Provide the binary and hexadecimal representation.
Q9. Analyze the value of the IEEE 754 double-precision bit pattern 0x4022000000000000. What
decimal number does it represent?
Q10. Analyze the bit pattern for the decimal number 0.15625 in the IEEE 754 single-precision
format. Provide the binary representation.
Q11. Analyze the floating-point representation of -1024.75 in IEEE 754 single-precision format.
What are the binary and hexadecimal representations?
Q12. Analyze how the IEEE 754 double-precision format encodes the decimal number 3.14.
Provide the bit pattern.
Q13. Analyze the decimal value of the bit pattern 0xC1A40000 in IEEE 754 single-precision
format.
Q14. Analyze how 0x3FD8000000000000 is represented in the IEEE 754 double-precision
format. What decimal number does it correspond to?
Q15. Analyze the IEEE 754 single-precision binary representation for the decimal number
250.5.
Q16. Analyze the IEEE 754 double-precision representation for -0.001953125. Provide the
binary and hexadecimal representations.