Perform the following floating-point conversions. Show your work.
Each conversion will be marked out of two (2). One mark is for the correct answer; one mark is for illustrating how you obtained your answer.
1. The following are examples of real numbers, expressed in various bases. Convert each to single-precision IEEE 754 format. If the result is irrational, only provide the first 8 bits of precision in the mantissa. Express your answer in hexadecimal.
(a) 110010.0100112
(b) -A.BC16
(c) 1.234510
(d) -10.2228
2. The following hexadecimal values are in IEEE 754 single-precision floating-point format. What decimal values do they represent?
(a) BC80000016
(b) 41C0000016
(c) C0E8000016
Submission:
Hand in your assignment on or before date and time noted above. Please drop off your assignment at your
instructor’s office, Ross N603. You may
slide it under the door, if he’s not around.
Assignment Format:
Your answers should be on 8.5” x 11” paper, with your name and student
number at the top of the first page.
Multiple pages should be affixed with one staple in the top left-hand
corner. Do not use a Duo-Tang or
other binder.
Late penalty:
Solutions will be posted on the course web site immediately after due date/time
noted above. Therefore, assignments
cannot be handed in late (i.e., the penalty will be 100%).