Question

In: Computer Science

1. Represent following floating-point numbers in IEEE single-precision (32-bit) format: a. -0.1875, b. 0.46875 2. What...

1. Represent following floating-point numbers in IEEE single-precision (32-bit) format: a. -0.1875, b. 0.46875

2. What is the decimal value of the following IEEE single-precision (32-bit) floating-point numbers (which are shown in hexadecimal)? a. 3F400000, b. BE000000

Solutions

Expert Solution

1)
a)
-0.1875 in simple binary => .0011
so, -0.1875 in normal binary is .0011 => 1.1 * 2^-3

single precision:
--------------------
sign bit is 1(-ve)
exp bits are (127-3=124) => 01111100
frac bits are 10000000000000000000000

so, -0.1875 in single-precision format is 1 01111100 10000000000000000000000
in hexadecimal it is 0xBE400000

b)
0.46875 in simple binary => .01111
so, 0.46875 in normal binary is .01111 => 1.111 * 2^-2

single precision:
--------------------
sign bit is 0(+ve)
exp bits are (127-2=125) => 01111101
frac bits are 11100000000000000000000

so, 0.46875 in single-precision format is 0 01111101 11100000000000000000000
in hexadecimal it is 0x3EF00000

2)
a)
0x3F400000
0 01111110 10000000000000000000000

sign bit is 0(+ve)
exp bits are 01111110 => in decimal it is 126
so, exponent/bias is 126-127 = -1
frac bits are 1

Decimal value is 1.1 * 2^-1
1.1 in decimal is 1.5
1.1 * 2^-1 in decimal is 0.75

so, 3F400000 in IEEE-754 single precision format is 0.75
Answer: 0.75

b)
0xBE000000
1 01111100 00000000000000000000000

sign bit is 1(-ve)
exp bits are 01111100 => in decimal it is 124
so, exponent/bias is 124-127 = -3
frac bits are 

Decimal value is 1. * 2^-3
1. in decimal is 1
1. * 2^-3 in decimal is -0.125

so, BE000000 in IEEE-754 single precision format is -0.125
Answer: -0.125

Related Solutions

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
Q1.Convert C46C000016 into a 32-bit single-precision IEEE floating-point binary number.
Q1.Convert C46C000016 into a 32-bit single-precision IEEE floating-point binary number.
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
2. a) Represent the decimal value 47.375 as a single precision IEEE floating point number. Give...
2. a) Represent the decimal value 47.375 as a single precision IEEE floating point number. Give your answer in hexadecimal and show your work. b) Represent the decimal value 47.375 as a double precision IEEE floating point number. Give your answer in hexadecimal and show your work.
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...
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.  
Represent the following numbers in IEEE half-precision floating point. Indicate problems where you run into them....
Represent the following numbers in IEEE half-precision floating point. Indicate problems where you run into them. 1 -10 55595472 -π (PI) The speed of light in meters per second
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
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.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT