0% found this document useful (0 votes)
244 views2 pages

Assignment 3

This document contains an assignment on representing floating-point numbers in binary format. It provides examples of converting between binary, fraction, and decimal representations. It also gives examples of normalized values and their exponents, as well as examples of numbers written in IEEE Short Real format including their sign, exponent, and mantissa fields.

Uploaded by

tthau2004bd77
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
244 views2 pages

Assignment 3

This document contains an assignment on representing floating-point numbers in binary format. It provides examples of converting between binary, fraction, and decimal representations. It also gives examples of normalized values and their exponents, as well as examples of numbers written in IEEE Short Real format including their sign, exponent, and mantissa fields.

Uploaded by

tthau2004bd77
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Assignment 3: Floating-Point Binary Representation

Full in name: Tô Thành Hậu


ID Student: 22110319
1. For each of the following binary floating-point numbers, supply
the equivalent value as a base 10 fraction, and then as a base 10
decimal. The first problem has been done for you:
Base 10 Base 10
Binary Floating-Point
Fraction Decimal
1.101 (sample) 1 5/8 1.625
11.11 11 3/4 11.75
1.1 1 1/2 1.5
101.001 101 1/8 101.125
1101.0101 1101 5/16 1101.3125
1110.00111 1110 7/32 1110.21875
10000.101011 10000 43/64 10000.671875
111.0000011 111 3/128 111.0234375
11.000101 11 5/64 11.078125

2. For each of the following exponent values, shown here in


decimal, supply the actual binary bits that would be used for an
8-bit exponent in the
IEEE Short Real format. The first answer has been supplied for
you:
Exponent (E) Binary Representation
2 (sample) 10000001
5 10000100
0 01111111
-10 01110101
128 11111111
-1 01111110
3. For each of the following floating-point binary numbers, supply
the normalized value and the resulting exponent. The first answer
has been
supplied for you:
Binary Value Normalized As Exponent
10000.11 (sample) 1.000011 4
1101.101 1.101101 3
.00101 1.01 -3
1.0001 1.0001 0
10000011.0 1.0000011 7
.0000011001 1.1001 -6

4. For each of the following floating-point binary examples,


supply the complete binary representation of the number in IEEE
Short Real format. The
first answer has been supplied for you:
Binary Value Sign, Exponent, Mantissa
1 01111111
-1.11 (sample)
11000000000000000000000
+1101.101 0 10000010 10110100000000000000000
-.00101 1 01111100 01000000000000000000000
+100111.0 0 10000100 00111000000000000000000
+.0000001101011 0 01111000 10101100000000000000000

You might also like