Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved 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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Driven Web Sites

Authors: Mike Morrison, Joline Morrison

1st Edition

061901556X, 978-0619015565

More Books

Students also viewed these Databases questions

Question

4 How can you create a better online image for yourself?

Answered: 1 week ago