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
Convert the following decimal numbers into their 32-bit floating point representation (IEEE single precision). You may...
Convert the following decimal numbers into their 32-bit floating point representation (IEEE single precision). You may use a calculator to do the required multiplications, but you must show your work, not just the solution. 1. -59.75 (ANSW: 11000010011011110000000000000000) 2. 0.3 (ANSW: 00111110100110011001100110011010 (rounded) 00111110100110011001100110011001 (truncated; either answer is fine)) Please show all work
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.
Concert the following 32-bit floating point number (IEEE single precision) into their decimal representation. 1100 0101...
Concert the following 32-bit floating point number (IEEE single precision) into their decimal representation. 1100 0101 0001 1111 1000 0000 0000 0000 (ANSW: -2552.0) Please show all work
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.
Convert the following binary floating point  to decimal IEEE 32-bit floating point format.   0 1000 0101 000...
Convert the following binary floating point  to decimal IEEE 32-bit floating point format.   0 1000 0101 000 0100 1101 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...
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.  
3. IEEE Floating Point Representation What decimal number does the 32-bit IEEE floating point number 0xC27F0000...
3. IEEE Floating Point Representation What decimal number does the 32-bit IEEE floating point number 0xC27F0000 represent? Fill in the requested information in the blanks below. What is the sign of the number (say positive or negative): What is the exponent in decimal format: What is the significand in binary: What is the value of the stored decimal number in decimal (final answer): Credit will be given for your final answer in the blanks and the work shown below.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT