Question

In: Computer Science

Convert 1.67e14 to the 32-bit IEEE 754 Floating Point Standard, with the following layout: first bit...

Convert 1.67e14 to the 32-bit IEEE 754 Floating Point Standard, with the following layout: first bit is sign bit, next 8 bits is exponent field, and remaining 23 bits is mantissa field; result is to be in hexadecimal and not to be rounded up.

answer choices

5717E27B

57172EB7

5717E2B7

C717E2B7

5771E2B7

Solutions

Expert Solution

Answer:
--------
c)  5717E2B7

Explanation:
-------------
Converting 167000000000000.0 to binary
   Convert decimal part first, then the fractional part
   > First convert 167000000000000 to binary
   Divide 167000000000000 successively by 2 until the quotient is 0
      > 167000000000000/2 = 83500000000000, remainder is 0
      > 83500000000000/2 = 41750000000000, remainder is 0
      > 41750000000000/2 = 20875000000000, remainder is 0
      > 20875000000000/2 = 10437500000000, remainder is 0
      > 10437500000000/2 = 5218750000000, remainder is 0
      > 5218750000000/2 = 2609375000000, remainder is 0
      > 2609375000000/2 = 1304687500000, remainder is 0
      > 1304687500000/2 = 652343750000, remainder is 0
      > 652343750000/2 = 326171875000, remainder is 0
      > 326171875000/2 = 163085937500, remainder is 0
      > 163085937500/2 = 81542968750, remainder is 0
      > 81542968750/2 = 40771484375, remainder is 0
      > 40771484375/2 = 20385742187, remainder is 1
      > 20385742187/2 = 10192871093, remainder is 1
      > 10192871093/2 = 5096435546, remainder is 1
      > 5096435546/2 = 2548217773, remainder is 0
      > 2548217773/2 = 1274108886, remainder is 1
      > 1274108886/2 = 637054443, remainder is 0
      > 637054443/2 = 318527221, remainder is 1
      > 318527221/2 = 159263610, remainder is 1
      > 159263610/2 = 79631805, remainder is 0
      > 79631805/2 = 39815902, remainder is 1
      > 39815902/2 = 19907951, remainder is 0
      > 19907951/2 = 9953975, remainder is 1
      > 9953975/2 = 4976987, remainder is 1
      > 4976987/2 = 2488493, remainder is 1
      > 2488493/2 = 1244246, remainder is 1
      > 1244246/2 = 622123, remainder is 0
      > 622123/2 = 311061, remainder is 1
      > 311061/2 = 155530, remainder is 1
      > 155530/2 = 77765, remainder is 0
      > 77765/2 = 38882, remainder is 1
      > 38882/2 = 19441, remainder is 0
      > 19441/2 = 9720, remainder is 1
      > 9720/2 = 4860, remainder is 0
      > 4860/2 = 2430, remainder is 0
      > 2430/2 = 1215, remainder is 0
      > 1215/2 = 607, remainder is 1
      > 607/2 = 303, remainder is 1
      > 303/2 = 151, remainder is 1
      > 151/2 = 75, remainder is 1
      > 75/2 = 37, remainder is 1
      > 37/2 = 18, remainder is 1
      > 18/2 = 9, remainder is 0
      > 9/2 = 4, remainder is 1
      > 4/2 = 2, remainder is 0
      > 2/2 = 1, remainder is 0
      > 1/2 = 0, remainder is 1
   Read remainders from the bottom to top as 100101111110001010110111101011010111000000000000
   So, 167000000000000 of decimal is 100101111110001010110111101011010111000000000000 in binary
   > Now, Convert 0.00000000 to binary
      > Multiply 0.00000000 with 2.  Since 0.00000000 is < 1. then add 0 to result
      > This is equal to 1, so, stop calculating
   0.0 of decimal is .0 in binary
   so, 167000000000000.0 in binary is 100101111110001010110111101011010111000000000000.0
167000000000000.0 in simple binary => 100101111110001010110111101011010111000000000000.0
so, 167000000000000.0 in normal binary is 100101111110001010110111101011010111000000000000.0 => 1.00101111110001010110111 * 2^47

single precision:
--------------------
sign bit is 0(+ve)
exp bits are (127+47=174) => 10101110
   Divide 174 successively by 2 until the quotient is 0
      > 174/2 = 87, remainder is 0
      > 87/2 = 43, remainder is 1
      > 43/2 = 21, remainder is 1
      > 21/2 = 10, remainder is 1
      > 10/2 = 5, remainder is 0
      > 5/2 = 2, remainder is 1
      > 2/2 = 1, remainder is 0
      > 1/2 = 0, remainder is 1
   Read remainders from the bottom to top as 10101110
   So, 174 of decimal is 10101110 in binary
frac bits are 00101111110001010110111

so, 167000000000000.0 in single-precision format is 0 10101110 00101111110001010110111
in hexadecimal it is 0x5717E2B7

Related Solutions

Convert the following decimal numbers to 32-bit IEEE floating point: 86.59375 -1.59729 Convert the following 32-bit...
Convert the following decimal numbers to 32-bit IEEE floating point: 86.59375 -1.59729 Convert the following 32-bit IEEE floating point numbers to decimal: 0100 1100 1110 0110 1111 1000 0000 0000 1011 0101 1110 0110 1010 0110 0000 0000
Convert the following binary number (signed 32-bit floating point IEEE-754) into decimal. 0100 0011 0100 0000...
Convert the following binary number (signed 32-bit floating point IEEE-754) into decimal. 0100 0011 0100 0000 0000 0000 0000 0000
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...
Convert the following floating-point number (stored using IEEE floating-point standard 754) to a binary number in...
Convert the following floating-point number (stored using IEEE floating-point standard 754) to a binary number in non-standard form. 0100_0001_1110_0010_1000_0000_0000_0000
verilog code to implement 32 bit Floating Point Adder in Verilog using IEEE 754 floating point...
verilog code to implement 32 bit Floating Point Adder in Verilog using IEEE 754 floating point representation.
Convert 1101.11011101 x 223 to IEEE Standard 754 for single-precision floating-point binary format. Convert the IEEE...
Convert 1101.11011101 x 223 to IEEE Standard 754 for single-precision floating-point binary format. Convert the IEEE Standard 754 number 11001010100011010101000000000000 to its decimal equivalent.
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
Convert 0.875 to an IEEE 754 single-precision floating-point number. Show the sign bit, the exponent, and...
Convert 0.875 to an IEEE 754 single-precision floating-point number. Show the sign bit, the exponent, and the fraction. Convert -3.875 to an IEEE 754 double-precision floating-point number. Show the sign bit, the exponent, and the fraction Convert the IEEE 754 single-precision floating-point numbers 42E4800016 and 0080000016 to their corresponding decimal numbers.
Convert the following number into 32bit IEEE 754 floating point representation. 0.000101
Convert the following number into 32bit IEEE 754 floating point representation. 0.000101
The number –11.375 (decimal) represented as a 32-bit floating-point binary number according to the IEEE 754...
The number –11.375 (decimal) represented as a 32-bit floating-point binary number according to the IEEE 754 standard is
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT