Question

In: Computer Science

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.

Solutions

Expert Solution

Solution:

Given,

=>IEEE 754 floating point representation is used.

=>Decimal number = -0.25

(a)

Explanation:

Single precision frame format:

Sign(S) Exponent(E) Mantissa(M)

      1 bit                         8 bits                                  23 bits

=>Normalized form = (-1)^S*(1.M)*2^(E-127)

Converting decimal number to binary from:

=>(-0.25)10 = (-0.01)2

Converting number in normalized form:

=>Number in normalized form = (-1)^1*(1.00000000000000000000000)*2^-2

=>S = 1

=>E - 127 = -2

=>E = 125 in decimal

=>E = 01111101 in binary

=>M = 00000000000000000000000

=>Hence number single precision = 10111110100000000000000000000000

(b)

Explanation:

Double precision frame format:

Sign(S) Exponent(E) Mantissa(M)

       1 bit                         11 bits                                  52 bits

=>Normalized form = (-1)^S*(1.M)*2^(E - 1023)

=>(-0.25)10 = (-0.01)2

Converting number in normalized form:

=>Number in normalized form = (-1)^1*(1.0000000000000000000000000000000000000000000000000000)*2^-2

=>S = 1

=>E - 1023 = -2

=>E = 1021 in decimal

=>E = 01111111101 in binary

=>M = 0000000000000000000000000000000000000000000000000000

=>Hence number in double precision = 1011111111010000000000000000000000000000000000000000000000000000

I have explained each and every part with the help of statements attached to the answer above.


Related Solutions

Show the IEE 754 binary representation of the number 0.625 in: a. single precision. After you...
Show the IEE 754 binary representation of the number 0.625 in: a. single precision. After you show the calculations, create a table with 2 rows and 32 columns to show the binary representation of the number. b. double precision. After you show the calculations, create a table with 3 rows and 32 columns to show the binary representation of the number.
convert -549.675 to IEEE-754 single precision and double precision both. Need a lot of explanation. (Atleast...
convert -549.675 to IEEE-754 single precision and double precision both. Need a lot of explanation. (Atleast 1000 words)
convert -47.199 to IEEE-754 single precision and double precision both. Need a lot of explanation. (Atleast...
convert -47.199 to IEEE-754 single precision and double precision both. Need a lot of explanation. (Atleast 1000 words)
convert -4972.67 to IEEE-754 single precision and double precision both. Need a lot of explanation. (Atleast...
convert -4972.67 to IEEE-754 single precision and double precision both. Need a lot of explanation. (Atleast 1000 words)
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
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
Express the following two base 10 numbers in binary using the IEEE 754 single-precision floating point...
Express the following two base 10 numbers in binary using the IEEE 754 single-precision floating point format (i.e., 32 bits). Express your final answer in hexadecimal (e.g., 32’h????????). a) 68.3125 b) -19.675
A) Convert 1101.11011101 x 223 to IEEE Standard 754 for single precision floating-point binary format. B)...
A) Convert 1101.11011101 x 223 to IEEE Standard 754 for single precision floating-point binary format. B) Convert the IEEE Standard 754 number 11001010100011010101000000000000 to its decimal equivalent.  
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT