{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

# Q4 Solution - a 0.10001 x 2 3 0.10101 x 2 6 Align...

This preview shows pages 1–2. Sign up to view the full content.

Name: ______________________ Student Number: _____________________ Trent University Computer Science 230H Fall 2007 Quiz #4 Topic: ALU Total of 10 marks Open Text Book Duration: 1 hour 1. [2 marks] Give the value in binary scientific format (e.g. 1.101 x 2 -11001 ), of the following 32 bit floating point number assuming the same format as in your notes on slide 6 ALU Set 3, assuming a bias of 127. a) 01110101110101000000000000000000 0 11101011 10101000000000000000000 Biased exponent = 11101011 2 = 235 Actual exponent = 01101100 2 = 235 – 127 = 108 Answer: 1.10101 x 2 1101100 b) 1 00101101 11110000000000000000000 1 00101101 11110000000000000000000 Biased exponent = 00101101 2 = 45 Actual exponent = -01010010 2 = 45 – 127 = -82 Answer: -1.1111 x 2 -1010010 2. [8 marks] Perform the following operations on floating point numbers.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document