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
Determine the representation for the following decimal numbers in single-precision IEEE 754 format. Give them in...
Determine the representation for the following decimal numbers in single-precision IEEE 754 format. Give them in 32-bit binary and show the calculation. -10^(−8)
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 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.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT