I would like a step by step explanation as to how the 7-bit floating point representations from Format A were converted to Format B. Thanks.
Consider the following two 7-bit floating point representations based on the IEEE floating point format. Neither has a sign bit - they can only represent non-negative numbers.
i). Format A.
There are k=3 exponent bits. The exponent bias is 3.
There are n=4 fraction bits.
ii). Format B.
There are k=4 exponent bits. The exponent bias is 7.
There are n=3 fraction bits.
Below, you are given some bit patterns in Format A, and your task is to convert them to the closest value in Format B. If necessary, you should apply the round-to-even rounding rule. In addition, give the values of numbers given by the Format A and Format B bit patterns. Give these as whole numbers (e.g., 17) or as fractions (e.g., 17/64 or 17/2).
Format A Format B
Bits | Value | Bits | Value |
011 0000 | 1 | 0111 000 | 1 |
101 1110 | 15/2 | 1001 111 | 15/2 |
010 1001 | 25/32 | 0110 100 | 3/4 (Round down) |
110 1111 | 31/2 | 1011 000 | 16 (Round up) |
000 0001 | 1/64 | 0001 000 | 1/64 (Denormalize -> normalized) |
Since The conversion is same for all the problems; I’ll explan a few examples.
Step1:
Conversion of format A to Decimal Value
2(decimal value of exponent – 3) and add the fractional part to it.
Step2:
Conversion of Decimal value to Format B
1. Convert the decimal number to binary format
2. Normalize the decimal value so that the binary number will be in the foramt 1.xxxxxxxx by shifting the binary point. Now find the mantessa and exponent.
Let’s see the example of 1st conversion. 011 0000
Since there is no sign bit leave it
Next 3 bits exponent
Exponent is 011 decimal equivalent is 3
Subtract that from exponent bias of Format A
2(exponent – exponent bias) 2(3-3) is 20 = 1 and the fractional part is 0000
Step2: Now convert that to format B
Binary Equivalent for 1 is 1.00000
Since the number is in 1.xxxxxx format
No need to shift the number
Exponent will be (7+0) 7 which is 0111 and the fractional part is 0000
Example 2:
101 1110 in Format A
1.1110
Convert that to binary format
Exponent is 101 so subtract 3 from 101; 5-3 = 2 so shift the decimal point to 2 left digits
1.1110 * 22.
111.10 its decimal equivalent is 7.5
Step2:
1. Convert 7.5 to binary format which is 111.1
2. Normalize 1.111 * 22.
3. Exponent is 7+2 which is 9 (1001)
4. And the fractioonal part is 3 bits 111.
Therefore the format B equivalent is
1001 111
Example 3:
010 1001
Step1: Convert the Format A to Decimal number
1. Exponent is 2, Subtract 3 from 2 which is -1
2. So the Binary number is 1.1001 * 2-1 = 0.11001 its decimal equivalent is 0.7815
Step2: Convert the Decimal number to Format B.
1. Binary number is 0.11001
2. Normalize it; 1.1001 * 2-1
3. Exponent will the 7 + (power of 2) which is 7-1; = 6 (0110)
4. Fractional part is reduced to 100(3 bits) which is called as rounding. so the Format B equivalent is 0110 100
I would like a step by step explanation as to how the 7-bit floating point representations from Format A were converted...
I would like a step by step explanation as to how the 7-bit floating point representations from Format A were converted to Format B. Thanks. Consider the following two 7-bit floating point representations based on the IEEE floating point format. Neither has a sign bit - they can only represent non-negative numbers. i). Format A. There are k=3 exponent bits. The exponent bias is 3. There are n=4 fraction bits. ii). Format B. There are k=4 exponent bits. The exponent...
Please show work, thanks. Consider the following two 16-bit floating-point representations 1. Format A. There is one sign bit There are k 6 exponent bits. The exponent bias is 31 (011111) There are n 9 fraction/mantissa bits 2. Format B There is one sign bit There are k 5 exponent bits. The exponent bias is 15 (01111) There are n 10 fraction/mantissa bits Problem 1 (81 points total /3 points per blank) Below, you are given some bit patterns in...
Consider a 9-bit floating-point representation based on the IEEE floating-point format, with one sign bit, four exponent bits (k = 4), and four fraction bits (n = 4). The exponent bias is 24-1-1-7. The table that follows enumerates some of the values for this 9-bit floating-point representation. Fill in the blank table entries using the following directions: e : The value represented by considering the exponent field to be an unsigned integer (as a decimal value) E: The value of...
Assume a 10-bit floating point representation format where the Exponent Field has 4 bits and the Fraction Field has 6 bits and the sign bit field uses 1 bit S Exponent Field: 4 bits Fraction Fleld: 5 bits a) What is the representation of -8.80158 × 10-2 in this Format - assume bias =2M-1-1=24-1-1=7 (where N= number of exponent field bits) for normalized representation 1 -bias =-6 : for denormalized representationb) What is the range of representation for...
Use a 10-‐bit model for floating point numbers, where one bit is used for the sign bit, 4 bits are used for the exponent with a bias of 7, and 5 bits are used for the fraction. What is the smallest and largest positive normal value that can be represented?
(15 pt) A real number is represented by the IEEE floating format in 4-bit exponent and 6-bit fraction (ignore the sign bit). 9. What is the floating point representation of the number 53/11 in the format ? a. Exponent Fraction b. What are values of the following floating-point numbers in binary scientific notations (e.g. 1.10*29 ? 0000 000001 0101 010101
Consider the following floating point format: 1 sign bit, 4 mantissa bits, and 3 exponent bits in excess 4 format. Add 1 1111 110 0 0110 010 Multiply 1 1011 111 0 0100 010
What's the decimal value of the following 8 bit floating point number? Suppose k=4 exponent bits, n=3 fraction bits, and the bias is 7 00111001
2. Represent 25.28255 in 32 bit IEEE-754 floating point format as shown in the following format discussed in class. Sign Bit BIT 31 Exponent BITS 30:23 Mantissa BITS 22:0 BYTE 3+1 bit 7 Bits BYTE 1 BYTE O
please explain steps!! Convert the boy binary floating point numbers below to decimal notation forseti 8 bits: SEEEEEFF and the bias is 7, where S-sign, E-Exponent acts on bits) 10 pt. / 5 pts es convert from 8 bit floating point binary format convert to: decimal +/-n.nn DS EEE (FFC - 0100 1.100 = -1,5 426 6 14.05 Yoryal = 15 +0111 1140=125 10110100 00111110 me floating point