COMP1411 Tutorial Exercise 3
Please refer the format of the IEEE single-precision floating point number (32-bit) to lecture 3 slides.
Question 1.
Copyright By PowCoder代写 加微信 powcoder
Convert the decimal number 123.1875 into IEEE single-precision floating point number.
Question 2.
Convert the following IEEE single-precision floating point number
1 01010101 11100000000000000000000
to a decimal number.
Question 3.
Discuss whether the decimal value 123.18 can be exactly represented by IEEE single-precision floating point number. Explain why.
Question 4.
Guess the result of variable c in the following C-language code.
float a = 3e19;
float b = 3e19;
float c = a*b;
Explain your answer.
程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com