Question

In: Computer Science

In representing -1/4 in IEEE 754, the value of the exponent plus bias (127) is 11111101...

In representing -1/4 in IEEE 754, the value of the exponent plus bias (127) is

11111101

01111101

10000000

01111111

Solutions

Expert Solution

b)  01111101

Explanation:
-------------
-0.25
Converting 0.25 to binary
   Convert decimal part first, then the fractional part
   > First convert 0 to binary
   Divide 0 successively by 2 until the quotient is 0
   Read remainders from the bottom to top as
   So, 0 of decimal is  in binary
   > Now, Convert 0.25000000 to binary
      > Multiply 0.25000000 with 2.  Since 0.50000000 is < 1. then add 0 to result
      > Multiply 0.50000000 with 2.  Since 1.00000000 is >= 1. then add 1 to result
      > This is equal to 1, so, stop calculating
   0.25 of decimal is .01 in binary
   so, 0.25 in binary is 00000000.01
-0.25 in simple binary => .01
so, -0.25 in normal binary is .01 => 1. * 2^-2

single precision:
--------------------
sign bit is 1(-ve)
exponent bits are (127-2=125) => 01111101
   Divide 125 successively by 2 until the quotient is 0
      > 125/2 = 62, remainder is 1
      > 62/2 = 31, remainder is 0
      > 31/2 = 15, remainder is 1
      > 15/2 = 7, remainder is 1
      > 7/2 = 3, remainder is 1
      > 3/2 = 1, remainder is 1
      > 1/2 = 0, remainder is 1
   Read remainders from the bottom to top as 1111101
   So, 125 of decimal is 1111101 in binary
so, 8-bit exponent is 01111101




Related Solutions

Given the following 32-bit binary sequences representing single precision IEEE 754 floating point numbers: a =...
Given the following 32-bit binary sequences representing single precision IEEE 754 floating point numbers: a = 0100 0000 1101 1000 0000 0000 0000 0000 b = 1011 1110 1110 0000 0000 0000 0000 0000 Perform the following arithmetic and show the results in both normalized binary format and IEEE 754 single-precision format. Show your steps. a)     a + b b)     a × b
I have the following decimal value 17.25. How can i convert this to IEEE 754 32...
I have the following decimal value 17.25. How can i convert this to IEEE 754 32 bit single precision floating point and double precision?. I need to use this as a matlab function block in Simulink, therefore i cannot use the conversion of hexadecimal to IEEE 754 32 bit single precision floating point matlab script.
Recall that a float is stored in the following format: ±sign 1.mantissa • 2^exponent?127 where sign...
Recall that a float is stored in the following format: ±sign 1.mantissa • 2^exponent?127 where sign is 1 bit, exponent is 8 bits, and mantissa is 23 bits. Write a C function that accepts an int parameter and returns a float represented by the bits in the int. The 32-bit integer is organized as 1-bit sign, 8-bit exponent, 23-bit mantissa. For example, 0x3F800000 represents 1.0 because the sign bit is 0, the exponent is 127, and the mantissa is all...
1. Convert 5.5 to hexadecimal notation using IEEE 754 single precision. Please show your work and...
1. Convert 5.5 to hexadecimal notation using IEEE 754 single precision. Please show your work and answer must be in hexadecimal notation. 2. (4 points) Convert -7.875 to hexadecimal notation using IEEE 754 single precision. Please show your work and answer must be in hexadecimal notation.
IEEE 754 format of 32-bit floating-point is as follows. 1 8 (bits) 23 (bits) What’s stored...
IEEE 754 format of 32-bit floating-point is as follows. 1 8 (bits) 23 (bits) What’s stored in each region? What’s the bias value and how to get it? For decimal fraction: – 0.625, please represent it as given format (Note: you must show the specific procedure/stepsin order to get full credits. If you only present final result directly, you will only get half of the credits even if it is correct.).  
1. Complete this sentence: "A company’s enterprise value is equal to _________ _________ value, plus ________...
1. Complete this sentence: "A company’s enterprise value is equal to _________ _________ value, plus ________ financial liabilities". a)      the sum of ; all assets ; net b)      total asset ; plus cash ; current c)      the sum of ; equity ; net d)      total asset ; equity ; current e)      the sum of ; equity ; all 2. Which of the following statements are correct with respect to the market value of equity (MVE)? There may be more than...
What's the present value of a 4-year ordinary annuity of $2,250 per year plus an additional...
What's the present value of a 4-year ordinary annuity of $2,250 per year plus an additional $3,750 at the end of Year 4 if the interest rate is 5%?
In an exponential decay function, the base of the exponent is a value between 0 and 1. Thus, for some number b > 1, the exponential decay function can be written as
In an exponential decay function, the base of the exponent is a value between 0 and 1. Thus, for some number b > 1, the exponential decay function can be written as f(X) = a ∙(1/b)X. Use this formula, along with the fact that b = en, to show that an exponential decay function takes the form f(x) = a(e)−nx for some positive number n. 
On July 1, 2019, Cage Company exercises a $5,000 call option (plus par value) on its...
On July 1, 2019, Cage Company exercises a $5,000 call option (plus par value) on its outstanding bonds that have a carrying value of $495,000 and a par value of $500,000. The company exercises the call option after the semiannual interest paid on June 30, 2019. Record the entry to retire the bonds.
On January 4, Year 1, Barber Company purchased 7,500 shares of Convell Company for $84,500 plus...
On January 4, Year 1, Barber Company purchased 7,500 shares of Convell Company for $84,500 plus a broker's fee of $1,500. Convell Company has a total of 37,500 shares of common stock outstanding and it is presumed the Barber Company will have a significant influence over Convell. During each of the next two years, Convell declared and paid cash dividends of $0.85 per share, and its net income was $97,000 and $92,000 for Year 1 and Year 2, respectively. What...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT