Question

In: Computer Science

What base 10 number (using powers of 10 if using scientific notation) is represented by the...

What base 10 number (using powers of 10 if using scientific notation) is

represented by the following IEEE 754 hexadecimal representation?

a. 40 70 00 00

b. FF E4 00 00

c. 80 20 00 00

Solutions

Expert Solution

a) 40 70 00 00
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 hexadecimal to binary
Converting 40700000 to binary
4 => 0100
0 => 0000
7 => 0111
0 => 0000
0 => 0000
0 => 0000
0 => 0000
0 => 0000
So, in binary 40700000 is 01000000011100000000000000000000
0 10000000 11100000000000000000000
sign bit is 0(+ve)
exp bits are 10000000
Converting 10000000 to decimal
   10000000
   => 1x2^7+0x2^6+0x2^5+0x2^4+0x2^3+0x2^2+0x2^1+0x2^0
   => 1x128+0x64+0x32+0x16+0x8+0x4+0x2+0x1
   => 128+0+0+0+0+0+0+0
   => 128
in decimal it is 128
so, exponent/bias is 128-127 = 1
frac bits are 111

IEEE-754 Decimal value is 1.frac * 2^exponent
IEEE-754 Decimal value is 1.111 * 2^1
1.111 in decimal is 1.875
   => 1.111
   => 1x2^0+1x2^-1+1x2^-2+1x2^-3
   => 1x1+1x0.5+1x0.25+1x0.125
   => 1+0.5+0.25+0.125
   => 1.875
so, 1.875 * 2^1 in decimal is 3.75
so, 01000000011100000000000000000000 in IEEE-754 single precision format is 3.75
Answer: 3.75

b) FF E4 00 00
Converting FFE40000 to binary
F => 1111
F => 1111
E => 1110
4 => 0100
0 => 0000
0 => 0000
0 => 0000
0 => 0000
So, in binary FFE40000 is 11111111111001000000000000000000
1 11111111 11001000000000000000000
sign bit is 1(-ve)
exp bits are 11111111
Exp bits are all 1. so, this is infinite.
since sign bit is 1. this is -Infinite
Answer: -Infinite

c) 80 20 00 00
Converting 80200000 to binary
8 => 1000
0 => 0000
2 => 0010
0 => 0000
0 => 0000
0 => 0000
0 => 0000
0 => 0000
So, in binary 80200000 is 10000000001000000000000000000000
1 00000000 01000000000000000000000
sign bit is 1(-ve)
exp bits are 00000000
Converting 00000000 to decimal
   00000000
   => 0x2^7+0x2^6+0x2^5+0x2^4+0x2^3+0x2^2+0x2^1+0x2^0
   => 0x128+0x64+0x32+0x16+0x8+0x4+0x2+0x1
   => 0+0+0+0+0+0+0+0
   => 0
in decimal it is 0
so, exponent/bias is 0-127 = -127
frac bits are 01

IEEE-754 Decimal value is 1.frac * 2^exponent
IEEE-754 Decimal value is 1.01 * 2^-127
1.01 in decimal is 1.25
   => 1.01
   => 1x2^0+0x2^-1+1x2^-2
   => 1x1+0x0.5+1x0.25
   => 1+0.0+0.25
   => 1.25
so, 1.25 * 2^-127 in decimal is 7.346839692639297e-39
so, 10000000001000000000000000000000 in IEEE-754 single precision format is -7.346839692639297e-39
Answer: -7.346839692639297e-39 (Note, this is very very close to zero)

Related Solutions

What is the advantage of using scientific notation over decimal notation? What is the difference between...
What is the advantage of using scientific notation over decimal notation? What is the difference between weight and mass?
Express the following number in scientific notation: 1.000
Express the following number in scientific notation: 1.000
what is 0.060 meters squared in scientific notation? what is 0.0000176 meters cubed in scientific notation?...
what is 0.060 meters squared in scientific notation? what is 0.0000176 meters cubed in scientific notation? what is 0.764 centimeters in scientific notation? what is 0.00764 meters in scientific notation? what is 1.833 centimeters squared in scientific notation? what is 0.000184 meters squared in scientific notation? what is 0.0000167 meters cubed in scientific notation? what is 8.965 g/cm3 in scientific notation? what is 1.052 g/cm3 in scientific notation? what is 8982.04 kg/m3 in scientific notation? what is 1053.89 kg/m3 in...
Indicate the number of significant figures and rewrite in scientific notation.
Indicate the number of significant figures and rewrite in scientific notation.                           Sig. figure      Scientific Notation Sig. figure           Scientific Notation   246.32   ………….       ……………. 0.678   ………….             ……………. 0.00340 ………….       ……………. 14.600 ………….              ……………. 0.0001 ………….         ………… 700000 ………….                 ……………. 350.670 ………….       ……………. 1.0000………….                ……………. 320001………….         ……………. 0.03020105………….      …………….
Convert the following to a decimal, scientific notation, and engineering notation Decimal to scientific and engineering...
Convert the following to a decimal, scientific notation, and engineering notation Decimal to scientific and engineering notation: 270, 14600, 0.000456, 0.022, 0.000000051, 66500000, 423000, 0.78 Scientific notation to decimal and engineering notation,4.5x10^4, 6.8x10^-8, 2.7x10^5, 7.22x10^-2, 9.52x10^-5, 1.89x10^2, 3.6x10^7, 8.62x10^-10 engineering notation to decimal and scientific notation,12k, 68p, 2.1G, 82T, 7.1n, 100m, 1.8k
(1.62 × 107)÷ (4.36 × 10−1) answer has to be In scientific notation
(1.62 × 107)÷ (4.36 × 10−1) answer has to be In scientific notation
1 Scientific Notation and Units •Know how to identify the correct number of significant figures in...
1 Scientific Notation and Units •Know how to identify the correct number of significant figures in a number .•Know how to work with powers of 10. •Know the main metric units for mass, distance, force, etc. •Know how to convert between scales for a unit, eg how many centimeters in akilometer. 2 Motion 2.1 Equations•v=∆x∆t•a=∆v∆t 2.2 Skills •Understand the relationship between acceleration and velocity, and what kind ofmotion occurs when they are same/opposite. •Know that average velocity is used when...
Binary How is 00001001 (base 2) represented in 8-bit two’s complement notation? Convert 0.3828125 to binary...
Binary How is 00001001 (base 2) represented in 8-bit two’s complement notation? Convert 0.3828125 to binary with 4 bits to the right of the binary point. How is 00110100 (base 2) represented in 8-bit one's complement.  
Explain the importance of scientific notation. Why is it necessary even when using calculators or computers?...
Explain the importance of scientific notation. Why is it necessary even when using calculators or computers? Provide three real-world examples where scientific notation is used, how it is used, and why. Finally, post three facts that include information about extremely large or small numbers that require scientific notation.
Convert 101 from base-2 number system to base-10 number system Convert 101 from base-2 number system...
Convert 101 from base-2 number system to base-10 number system Convert 101 from base-2 number system to base-16 number system Convert 100 from base-10 number system to base-2 number system Convert 100 from base-10 number system to base-16 number system Convert ef from base-16 number system to base-2 number system Convert ef from base-16 number system to base-10 number system
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT