HW3_solution - SOLUTION ECE 2504 Introduction to Computer...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: SOLUTION ECE 2504 Introduction to Computer Engineering, Fall 2009 Homework 3 Due date: 14 Sep 09, 11:55pm Show all work. 1. (5 pts) Convert (-275.53864) 10 to 32-bit floating point representation in standard IEEE format. Represent your answer in hex. 23 bit mantissa, 8 bit exponent 1 001 2 002 2 004 2 008 2 1 017 2 034 2 068 2 1 137 2 1 275 2 100010011 .53864 2 = 1. 07728 .07728 2 = 0. 15456 .15456 2 = 0. 30912 .30912 2 = 0. 61824 .61824 2 = 1. 23648 .23648 2 = 0. 47296 .47296 2 = 0. 94592 .94592 2 = 1. 89184 .89184 2 = 1. 78368 .78368 2 = 1. 56736 .56736 2 = 1. 13472 .13472 2 = 0. 26944 .26944 2 = 0. 53888 .53888 2 = 1. 07776 .07776 2 = 0. 15552 .15552 2 = 0. 31104 (0.100010011110010 ) 2- 100010011.100010011110010 = - 1.00010011100010011110010 2 8 = (-1) 1 1.00010011100010011110010 2 8 S = 1 e = 8; E = 8 + 127 = 135 F = 00010011100010011110010 1 10000111 00010011100010011110010 1100 0011 1000 1001 1100 0100 1111 0010 C389C4F2H SOLUTION 2. (5 pts) Convert 42BBA400H, which is a 32-bit floating point number in IEEE 754 format, to decimal. 42BBA400H 0100 0010 1011 1011 1010 0100 0000 0000 0 10000101 01110111010010000000000 S = 0 E = 133; e = 133 127 = 6 F = 01110111010010000000000...
View Full Document

This note was uploaded on 10/20/2009 for the course ECE 2504 taught by Professor Klcooper during the Fall '08 term at Virginia Tech.

Page1 / 6

HW3_solution - SOLUTION ECE 2504 Introduction to Computer...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online