Question

Give the decimal number represented by the 32-bit word 1011 0011 1101 0000 0000 0000 0000...

Give the decimal number represented by the 32-bit word 1011 0011 1101 0000 0000 0000 0000 0000 if a. An unsigned representation has been used b. A sign magnitude representation has been used c. A signed 2’s complement representation has been used d. A 754 IEEE representation has been usedGive the decimal number represented by the 32-bit word 1011 0011 1101 0000 0000 0000 0000 0000 if a. An unsigned representation has been used b. A sign magnitude representation has been used c. A signed 2’s complement representation has been used d. A 754 IEEE representation has been used.

0 0
Add a comment Improve this question Transcribed image text
Answer #1
a)
1011001111010000000000000000
=> 1x2^27+0x2^26+1x2^25+1x2^24+0x2^23+0x2^22+1x2^21+1x2^20+1x2^19+1x2^18+0x2^17+1x2^16+0x2^15+0x2^14+0x2^13+0x2^12+0x2^11+0x2^10+0x2^9+0x2^8+0x2^7+0x2^6+0x2^5+0x2^4+0x2^3+0x2^2+0x2^1+0x2^0
=> 1x134217728+0x67108864+1x33554432+1x16777216+0x8388608+0x4194304+1x2097152+1x1048576+1x524288+1x262144+0x131072+1x65536+0x32768+0x16384+0x8192+0x4096+0x2048+0x1024+0x512+0x256+0x128+0x64+0x32+0x16+0x8+0x4+0x2+0x1
=> 134217728+0+33554432+16777216+0+0+2097152+1048576+524288+262144+0+65536+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0
=> 188547072
Answer: 188547072

b)
Left most bit is 1. so, it's negative.
Now, let's convert rest of the bits 011001111010000000000000000 to decimal
=> 011001111010000000000000000
=> 0x2^26+1x2^25+1x2^24+0x2^23+0x2^22+1x2^21+1x2^20+1x2^19+1x2^18+0x2^17+1x2^16+0x2^15+0x2^14+0x2^13+0x2^12+0x2^11+0x2^10+0x2^9+0x2^8+0x2^7+0x2^6+0x2^5+0x2^4+0x2^3+0x2^2+0x2^1+0x2^0
=> 0x67108864+1x33554432+1x16777216+0x8388608+0x4194304+1x2097152+1x1048576+1x524288+1x262144+0x131072+1x65536+0x32768+0x16384+0x8192+0x4096+0x2048+0x1024+0x512+0x256+0x128+0x64+0x32+0x16+0x8+0x4+0x2+0x1
=> 0+33554432+16777216+0+0+2097152+1048576+524288+262144+0+65536+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0
=> 54329344
so, 1011001111010000000000000000 from sign-magnitude to decimal is -54329344
Answer: -54329344

c)
since left most bit is 1, this number is negative number.
so, follow these steps below to convert this into a decimal value.
I. first flip all the bits. Flip all 0's to 1 and all 1's to 0.
   11111011001111010000000000000000 is flipped to 00000100110000101111111111111111
II. Add 1 to above result
00000100110000101111111111111111 + 1 = 00000100110000110000000000000000
III. Now convert this result to decimal value
=> 100110000110000000000000000
=> 1x2^26+0x2^25+0x2^24+1x2^23+1x2^22+0x2^21+0x2^20+0x2^19+0x2^18+1x2^17+1x2^16+0x2^15+0x2^14+0x2^13+0x2^12+0x2^11+0x2^10+0x2^9+0x2^8+0x2^7+0x2^6+0x2^5+0x2^4+0x2^3+0x2^2+0x2^1+0x2^0
=> 1x67108864+0x33554432+0x16777216+1x8388608+1x4194304+0x2097152+0x1048576+0x524288+0x262144+1x131072+1x65536+0x32768+0x16384+0x8192+0x4096+0x2048+0x1024+0x512+0x256+0x128+0x64+0x32+0x16+0x8+0x4+0x2+0x1
=> 67108864+0+0+8388608+4194304+0+0+0+0+131072+65536+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0
=> 79888384
Answer: -79888384

d)
1 01100111 1010000000000000000
sign bit is 1(-ve)
exp bits are 01100111
   => 01100111
   => 0x2^7+1x2^6+1x2^5+0x2^4+0x2^3+1x2^2+1x2^1+1x2^0
   => 0x128+1x64+1x32+0x16+0x8+1x4+1x2+1x1
   => 0+64+32+0+0+4+2+1
   => 103
in decimal it is 103
so, exponent/bias is 103-127 = -24
frac bits are 101

IEEE-754 Decimal value is 1.frac * 2^exponent
IEEE-754 Decimal value is 1.101 * 2^-24
1.101 in decimal is 1.625
   => 1.101
   => 1x2^0+1x2^-1+0x2^-2+1x2^-3
   => 1x1+1x0.5+0x0.25+1x0.125
   => 1+0.5+0.0+0.125
   => 1.625
so, 1.625 * 2^-24 in decimal is 9.685754776000977e-08
so, 1011001111010000000000000000 in IEEE-754 single precision format is -9.685754776000977e-08
Answer: -9.685754776000977e-08
Add a comment
Know the answer?
Add Answer to:
Give the decimal number represented by the 32-bit word 1011 0011 1101 0000 0000 0000 0000...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 1 please IEEE-754 Floating point conversions problems (assume 32 bit machine): 1. For IEEE 754 single-precision...

    1 please IEEE-754 Floating point conversions problems (assume 32 bit machine): 1. For IEEE 754 single-precision floating point, write the hexadecimal representation for the following decimal values: a. 27.1015625 b.-1 2. For IEEE 754 single-precision floating point, what is the decimal number, whose hexadecimal representation is the following? a. 4280 0000 b. 7FE4 0000 c. 0061 0000 3. For IEEE-754 single-precision floating point practice the following problem: Suppose X and Y are representing single precision numbers as follows: X 0100...

  • Convert each of the following 32 IEEE 754 single precision bit patterns to its corresponding decimal...

    Convert each of the following 32 IEEE 754 single precision bit patterns to its corresponding decimal value (the bits are separated into groups of 4 to make interpretation easier). Show all of your work and include a few comments as to what you are doing at each step. 1100 0100 1011 1010 0100 1000 0000 0000 a. b. 0100 0101 1110 0010 0110 1101 0000 0000 Convert each of the following 32 IEEE 754 single precision bit patterns to its...

  • 4. What decimal value does the 8-bit binary number 10011110 have if:

    4. What decimal value does the 8-bit binary number 10011110 have if: a) It is interpreted as an unsigned number? b) It is on a computer using signed-magnitude representation? c) It is on a computer using ones complement representation? d) It is on a computer using twos complement representation? 5. Given the following two binary numbers: 11111100 and 01110000. a) Which of these two numbers is the larger unsigned binary number? b) Which of these two is the larger when it is being...

  • question 1 part 2 and 3 thank you (47) Naruto Notone C Sign In er Sign...

    question 1 part 2 and 3 thank you (47) Naruto Notone C Sign In er Sign Up | Ch ® UFC & MMA × Secure I https://piazza-resourcess3.amazonaws.com/jgopch0cb93d8/j .pdfAWSAccessKeyld-AKAILDNRL/4ALKBWOHA8lexpires-15200435/2&Signature-ol9aXG9 /UAKIHS0QUwMeyBX.. ☆ ミ quations must be properly tyne-set including superscript-s expunents, Always watch the course websile for updates on the assignments. Question 1 (4 points) Show you work I. Convert 2727 into a 32-bit two's complement binary number 2. Convert -5795 into a 16-bit two's complement binary number 3. Add the above...

  • What is -29 as a 9 bit 2's complement number? a. 1 1110 0000 b. 1...

    What is -29 as a 9 bit 2's complement number? a. 1 1110 0000 b. 1 1110 0011 c. 0 1110 0011 d. 0 1101 1101 e. None of the above

  • Please show and explain all work for each questions What decimal number does the bit pattern...

    Please show and explain all work for each questions What decimal number does the bit pattern 11001100 represent if it is a: • [1 pts] unsigned integer? • [1 pts] sign-magnitude integer? • [1 pts] two's complement integer? 4 - What decimal number does the bit pattern 00110011 represent if it is a: • [1 pts] unsigned integer? • [1 pts] sign-magnitude integer? • [1 pts] two's complement integer? 5 - [2 pts] What is the binary representation of the...

  • 5. (10 pts) Given the 32-bit pattern: 1000 1111 0001 0110 0000 0000 0110 1000 hat does it represent respectively, assuming that it is a signed (2's complement) integer? (convert them to decim...

    5. (10 pts) Given the 32-bit pattern: 1000 1111 0001 0110 0000 0000 0110 1000 hat does it represent respectively, assuming that it is a signed (2's complement) integer? (convert them to decimal) b. an unsigned integer? (convert them to decimal) c. a MIPS instruction? 5. (10 pts) Given the 32-bit pattern: 1000 1111 0001 0110 0000 0000 0110 1000 hat does it represent respectively, assuming that it is a signed (2's complement) integer? (convert them to decimal) b. an...

  • 21. What is AA BA in 8-bit unsigned representation? [all numbers are given in hex] a. Overflow b. 10 1A C. d. A1 22. Wh...

    21. What is AA BA in 8-bit unsigned representation? [all numbers are given in hex] a. Overflow b. 10 1A C. d. A1 22. What is the 8-bit 2's complement representation of a number which is represented as 811s in 8-bit sign- magnitude integer representation? а. FF16 b. 1816 1116 C. d. Cannot be determined 23. What is 3B16 AB16 in 8-bit sign-magnitude representation? а. DB:6 b. 1016 2B16 C. d. Cannot be determined 24. What is 1100 - 0001...

  • What decimal value does the 8-bit binary number 10110111 have if: a) it is interpreted as...

    What decimal value does the 8-bit binary number 10110111 have if: a) it is interpreted as an unsigned number? b) it is on a computer using signed-magnitude representation? c) it is on a computer using one’s complement representation? d) it is on a computer using two’s complement representation? e) it is on a computer using excess-127 representation?

  • HW3: Problem 1: (first, study the example-1 in page-6) A computer uses 8-bit for FLP (1...

    HW3: Problem 1: (first, study the example-1 in page-6) A computer uses 8-bit for FLP (1 bit for sign, 4 bit for exponent with excess-7 rep. (see table below), rest for magnitude). Assume 0000 and 1111 in exponent field are reserved for denormalization. 6 Decimal 0 Unsigned 0000 Excess-7 Reserved used as -6 in unnormalized 1 0001 -6 2 0010 -5 3 0011 -4 4 0100 -3 5 0101 -2 0110 -1 7 0111 0 9 Decimal 8 Unsigned 1000...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT