Question

In: Computer Science

7-bit float to fraction Consider a 7-bit float representation with 3 exponent bits. that k is...

7-bit float to fraction

Consider a 7-bit float representation with 3 exponent bits. that k is the number of exponent bits, and the bias is computed as 2k-1-1.

For each problem, convert the given float value (provided as a series of bits) into the equivalent base 10 fraction. Simplify each fraction as much as possible. If there is a whole number part and a fractional part, put a space between them.

Here are some example values in the correct format:

  • 12 1/2
  • 13/16
  • -7

Need help with these

1.Convert 0 000 101 to a base 10 fraction.

2.Convert 0 011 010 to a base 10 fraction.

3.Convert 1 011 001 to a base 10 fraction

4.Convert 0 010 000 to a base 10 fraction

5.Convert 1 000 010 to a base 10 fraction.

6.Convert 1 011 000 to a base 10 fraction.

7.Convert 1 110 111 to a base 10 fraction.

8.Convert 1 101 001 to a base 10 fraction.

9.Convert 0 000 010 to a base 10 fraction.

10.Convert 0 001 111 to a base 10 fraction.

Solutions

Expert Solution

Solution:

The Conversion Procedure as follows:

  1. If the original number is in hex, convert it to binary.
  2. Separate into the sign, exponent, and mantissa fields.
  3. Extract the mantissa from the mantissa field, and restore the leading one. You may also omit the trailing zeros.
  4. Extract the exponent from the exponent field, and subtract the bias to recover the actual exponent of two. As before, the bias is 2k−1 − 1, where k is the number of bits in the exponent field, giving 3 for the 8-bit format and 127 for the 32-bit.
  5. De-normalize the number: move the binary point so the exponent is 0, and the value of the number remains unchanged.
  6. Convert the binary value to decimal. This is done just as with binary integers, but the place values right of the binary point are fractions.
  7. Set the sign of the decimal number according to the sign bit of the original floating point number: make it negative for 1; leave positive for 0.

Related Solutions

a. Encoding the decimal number 2.25 into an 8-bit binary. Suppose k=4 exponent bits, n=3 fraction...
a. Encoding the decimal number 2.25 into an 8-bit binary. Suppose k=4 exponent bits, n=3 fraction bits, and the bias is 7. What’s the corresponding binary representation for 2.25? Show your work. b. What’s the value in decimal if this is an 8-bit floating point number? Suppose k=4 exponent bits, n=3 fraction bits, and the bias is 7 of 10111001
Using 64-bit IEEE 754 DOUBLE precision floating point with one(1) sign bit, eleven (11) exponent bits...
Using 64-bit IEEE 754 DOUBLE precision floating point with one(1) sign bit, eleven (11) exponent bits and fifty-two (52) mantissa bits, what is the decimal value of: 0xBFE4000000000000
7.   __________________ representation of a binary number uses the bit following (after)       the most significant...
7.   __________________ representation of a binary number uses the bit following (after)       the most significant bit as the sign bit, making it possible to determine whether an       integer is negative or positive.       A). 2’s complement       B). 1’s complement       C). bitwise complement       D). bitwise negation 8. To obtain the 2’s complement of a binary number, it is necessary to flip (reverse) the       bits and ___________________________.       A). subtract 1       B). divide by 1...
Consider a binary channel transmitting bits independently. Each bit is demodulated with a 0 corresponding to...
Consider a binary channel transmitting bits independently. Each bit is demodulated with a 0 corresponding to 0 volts and a 1 corresponding to 5 volts. Thus, the received random variable v is normally distributed with variance σ2 = 1 and mean μ = 0 or μ = 5. The demodulated voltage v is compared to a threshold τ to decide whether a bit is a 0 or 1, i.e., decide that a 1 was sent if v > τ and...
1. Obtain the 1’s complement, 2’s complement and sign magnitude system representation in 7 bits for...
1. Obtain the 1’s complement, 2’s complement and sign magnitude system representation in 7 bits for the following decimal numbers: a) 1510 b) -2110 c) 3510 d) -2710 2. Use 1’s and 2’s complement system to perform the following calculations and mention if there will be overflow or not: a) 1100 – 0101 b) 1010 + 0100 c) 01100 + 00111
Simplify into one fraction: 3/x + 1/7
Simplify into one fraction: 3/x + 1/7
Consider the following 32-bit floating point representation based on the IEEE floating point standard: There is...
Consider the following 32-bit floating point representation based on the IEEE floating point standard: There is a sign bit in the most significant bit. The next eight bits are the exponent, and the exponent bias is 28-1-1 = 127. The last 23 bits are the fraction bits. The representation encodes number of the form V = (-1)S x M x 2E, where S is the sign, M is the significand, and E is the biased exponent. The rules for the...
Find the 3-bit mantissa floating point representation of the following numbers, both by chopping and rounding,...
Find the 3-bit mantissa floating point representation of the following numbers, both by chopping and rounding, and then calculate the associated respective absolute error and relative error: (a) 11/16 (b) 2.75
Consider the following hypothetical microprocessor. Assume this processor uses 32-bit instructions. Assume the 32 bits are...
Consider the following hypothetical microprocessor. Assume this processor uses 32-bit instructions. Assume the 32 bits are composed of an opcode of 7 bits and an address of 25 bits. Answer the questions below. What is the memory capacity (in Bytes)? Show your work and give your final answer in megabytes (MB). Consider the following address and data bus widths, and discuss their impact on system speed. Local address bus width of 32 bits, and a local data bus width of...
Consider the series X∞ k=3 √ k/ (k − 1)^3/2 . (a) Determine whether or not...
Consider the series X∞ k=3 √ k/ (k − 1)^3/2 . (a) Determine whether or not the series converges or diverges. Show all your work! (b) Essay part. Which tests can be applied to determine the convergence or divergence of the above series. For each test explain in your own words why and how it can be applied, or why it cannot be applied. (i) (2 points) Divergence Test (ii) Limit Comparison test to X∞ k=2 1/k . (iii) Direct...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT