Question

In: Computer Science

One day Tom found a weird-looking computer in his basement. After studying it, Tom figured out...

One day Tom found a weird-looking computer in his basement. After studying it, Tom figured out that this computer stores floating point numbers in a way similar to the IEEE 754 standard. However, it uses 26 bits. Among these bits, the most significant (i.e. the leftmost) bit is for the sign (same as IEEE 754), the following 6 bits are for the biased exponent with the bias as 31, and the rest are for the significand. If the real number -0.84375 is stored on the computer, what are the 26 bits stored? Show the result in the order of sign, biased exponent and significand. Separate them by comma.

Solutions

Expert Solution

Answer:
--------
1,011110,1011000000000000000

Explanation:
-------------
Converting 0.84375 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.84375000 to binary
      > Multiply 0.84375000 with 2.  Since 1.68750000 is >= 1. then add 1 to result
      > Multiply 0.68750000 with 2.  Since 1.37500000 is >= 1. then add 1 to result
      > Multiply 0.37500000 with 2.  Since 0.75000000 is < 1. then add 0 to result
      > Multiply 0.75000000 with 2.  Since 1.50000000 is >= 1. then add 1 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.84375 of decimal is .11011 in binary
   so, 0.84375 in binary is .11011
-0.84375 in simple binary => .11011
so, -0.84375 in normal binary is .11011 => 1.1011 * 2^-1

26-bit format:
--------------------
sign bit is 1(-ve)
exp bits are (31-1=30) => 011110
   Divide 30 successively by 2 until the quotient is 0
      > 30/2 = 15, remainder is 0
      > 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 11110
   So, 30 of decimal is 11110 in binary
frac bits are 1011000000000000000

so, -0.84375 in 26-bit format is 1 011110 1011000000000000000



Related Solutions

So I was looking out the sky one day and I wondered how I would go...
So I was looking out the sky one day and I wondered how I would go about calculating how much water was contained in a cloud. I figured the following simple outline 1) We need to roughly know how big it is. We'll also be figuring out how high the cloud is. Use some sort of geometric method? Triangles? 2) We need to relate its color to its density. (Darker clouds more dense) (White fluffy clouds less dense) 3) Correction...
Jim lost his job after his colleague Tom tarnished his reputation in the office. Jim subsequently...
Jim lost his job after his colleague Tom tarnished his reputation in the office. Jim subsequently sues Tom for this. Which of the following insurance policies would have covered such a risk for Tom? Health insurance policy Homeowner's insurance policy Disability insurance policy Personal liability insurance policy Whole-life insurance policy
One day you walk out your front door looking for adventure. You quickly see a guy...
One day you walk out your front door looking for adventure. You quickly see a guy standing by the side of the road with a green dialogue bubble hovering over his head. You suspect that this might indicate that talking to him may lead to some kind of adventure so you do so. It turns out that he is a wizard of some sort who requires the tusks of a certain type of wild pig to make a potion. He...
1. Read the article entitled "Following Benford's Law , or Looking Out for No. 1" found...
1. Read the article entitled "Following Benford's Law , or Looking Out for No. 1" found at www.rexswain.com/benford.html. The article mentions that a statistic professor can easily discern if students flipped a coin 200 times or if they merely faked it. Of this exercise, the professor stated, "Most people do not know the real odds of such an exercise, so they cannot fake data convincingly." How does that exercise relate to Benfords Law and detecting Fraud? 2. Search an Internet...
Tom is a store detective at a shoe store. One day at 9 am, he observed...
Tom is a store detective at a shoe store. One day at 9 am, he observed Jill leaving the store wearing a pair of shoes she had been trying on, without paying for them. He raced after her and escorted her back to the store where he locked her up in the office at the back. "That will teach her", he thought. When Jill pleaded to leave, he shouted "You can rot in hell, for all I care! I am...
Paul is a 50-year-old healthy taxi driver in Boston. One day, after celebrating his son's birthday...
Paul is a 50-year-old healthy taxi driver in Boston. One day, after celebrating his son's birthday with a special meal out in a restaurant, he developed severe chest pain. At first, he thought it is just a digestive issue from the spicy meal. However, the pain became so severe that he had to be hospitalized in a public hospital, which provides free emergency care. He was first examined by an emergency physician, and subsequently by a cardiologist, who diagnosed Paul’s...
Binomial Distribution Tom and Jerry play one game per day. It is known that Tom’s winning...
Binomial Distribution Tom and Jerry play one game per day. It is known that Tom’s winning chance is P[W] = 0.6 and if he does not win, then he loses. Game results are assumed to be independent. After FOUR days, variable T indicates a total number of games won by Tom. So J = 4 − T is the number of games he lost (or Jerry won). Use the formula for binomial probabilities and probability rules to answer questions below....
Tom Hagstrom needs a new car for his business. One alternative is to purchase the car...
Tom Hagstrom needs a new car for his business. One alternative is to purchase the car outright for $28,000 and to finance the car with a bank loan for the net purchase price. The bank loan calls for 36 equal monthly payments of $881.30 at an interest rate of 8.3% compounded monthly. Payments must be made at the end of each month. The terms of each alternative are Buy Lease $28,000 $696 per month 36-month open-end lease. Annual mileage allowed...
After studying the landlord-tenant relationship, list the rights and duties of each party and pick out...
After studying the landlord-tenant relationship, list the rights and duties of each party and pick out one that might be concidered unfair to one of the parties in certain situations. Explain. Niether possible answer found is complete. Need situation explained and rights of duties of both landlord and tenant relationships described a bit more professional. Any help wouod be mich apreciated.
You are looking to take out a 300K USD mortgage for 30 years. After shopping around,...
You are looking to take out a 300K USD mortgage for 30 years. After shopping around, you have two offers on the table: Bank 1: 2.93% interest rate, up front fees of 3,918 USD Bank 2: 3.41% interest rate, up front fees of 2,944 USD Notice the tradeoff between the rate and the fees: you can pay a higher up front fee in exchange for a lower interest rate. How long (at a minimum) must you anticipate staying in this...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT