Question: 1. [7 marks] Floating-Point Integers Let S be the set of 32-bit IEEE floating-point values that are integers. (S contains both +0 and -0.) Answer
1. [7 marks] Floating-Point Integers Let S be the set of 32-bit IEEE floating-point values that are integers. (S contains both +0 and -0.) Answer the following questions about . Express all your answers exactly, i e. by using powers of 2. (a) [I markj How many elements are in S? (b) [ mark] What's the largest odd value of S? (c) [1 mark] What are the largest two values of S? (d) mark] How many consecutive integers are in S? You shouldn't count both +0 and -0 in your total (e) [I mark] The number 22 is in S. What are its nearest neighbours? In other words, what two values in S are closest to 22? (f) 12 marks] Determine the number of values in S which are representable using 32-bit unsigned. (8) [1 BONUS mark] Determine the number of values in S which are representable using 64-bit 2's complement. An exact value is required for the bonus mark 2. 12 marks] Floating-Point Addition Add the following pairs of 32-bit IEEE floating-point numbers. Show all your work. e 0x43938000 0xc2280000. 0x3f 19999a 0x3ecccccd Note: The rounding convention for numbers that are exactly halfway between two valid representations is to round to the nearest even number. For example, the decimal number 3.5 rounds to 4, but 4.5 also rounds to 4. In binary, the only even digit is 0, so you will round to 0, if necessary
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
