Question

In: Computer Science

Convert 1.8125 to IEEE-754 representation. Show all your work.

Convert 1.8125 to IEEE-754 representation. Show all your work.

Solutions

Expert Solution

1.8125
Converting 1.8125 to binary
   Convert decimal part first, then the fractional part
   > First convert 1 to binary
   Divide 1 successively by 2 until the quotient is 0
       > 1/2 = 0, remainder is 1
   Read remainders from the bottom to top as 1
   So, 1 of decimal is 1 in binary
   > Now, Convert 0.81250000 to binary
       > Multiply 0.81250000 with 2.    Since 1.62500000 is >= 1. then add 1 to result
       > Multiply 0.62500000 with 2.    Since 1.25000000 is >= 1. then add 1 to result
       > 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.8125 of decimal is .1101 in binary
   so, 1.8125 in binary is 00000001.1101
1.8125 in simple binary => 1.1101
so, 1.8125 in normal binary is 1.1101 => 1.1101 * 2^0

single precision:
--------------------
sign bit is 0(+ve)
exponent bits are (127+0=127) => 01111111
   Divide 127 successively by 2 until the quotient is 0
       > 127/2 = 63, remainder is 1
       > 63/2 = 31, remainder is 1
       > 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 1111111
   So, 127 of decimal is 1111111 in binary
frac/significant bits are 11010000000000000000000

so, 1.8125 in single-precision format is 0 01111111 11010000000000000000000
Hexadecimal Binary
0 0000
1 0001
2 0010
3 0011
4 0100
5 0101
6 0110
7 0111
8 1000
9 1001
A 1010
B 1011
C 1100
D 1101
E 1110
F 1111
Use this table to convert from binary to hexadecimal
Converting 00111111111010000000000000000000 to hexadecimal
0011 => 3
1111 => F
1110 => E
1000 => 8
0000 => 0
0000 => 0
0000 => 0
0000 => 0
So, in hexadecimal 00111111111010000000000000000000 is 0x3FE80000

in hexadecimal it is 0x3FE80000




Related Solutions

Convert 1.8125 to IEEE-754 representation. Show all your work.
Convert 1.8125 to IEEE-754 representation. Show all your work.
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
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.
Show the IEEE 754 binary representation of the number -0.25(subscript)ten in single and double precision. List...
Show the IEEE 754 binary representation of the number -0.25(subscript)ten in single and double precision. List all the steps required to get the single and double precision.
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.
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.
Represent (10.375)10 as single precision IEEE 754, show all the steps
Represent (10.375)10 as single precision IEEE 754, show all the steps
Convert 3/7 to IEEE 754. Convert 171.375 to IEEE754 Convert the float number 0x4024 0080 0000...
Convert 3/7 to IEEE 754. Convert 171.375 to IEEE754 Convert the float number 0x4024 0080 0000 0000 to decimal. What is the true exponent? Circle the true exponent. 0x3FAF 9000 0000 is an IEEE float number. Convert it to base 10. While doing the conversion answer two questions: What is the true exponent? What is the mantissa? Make these two values obvious by circling them.
For IEEE 754 single-precision floating point, what is the hexadecimal representation of 27.101562? A. 35CCD001 B....
For IEEE 754 single-precision floating point, what is the hexadecimal representation of 27.101562? A. 35CCD001 B. 2F5C10D0 C. 41D8D000 D. 7DCA1111 E. None of the above
Using IEEE 754 single precision floating point, write the hexadecimal representation for each of the following:...
Using IEEE 754 single precision floating point, write the hexadecimal representation for each of the following: a. Zero b. -2.0 (base 10) c. 256. 0078125 (base 10) d. Negative infinity
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT