Question

In: Computer Science

Represent the following in IEEE format. Express your answers in Hexadecimal Format (Base 16) -10.510 9.999...

Represent the following in IEEE format. Express your answers in Hexadecimal Format (Base 16)

  1. -10.510
  2. 9.999 x 101 + 1.610 x 10-1
  3. 0.510 x (-0.4375)10
  4. (1.10 x 1010) x (9.2 x 10-5)

Solutions

Expert Solution

In Single Point IEEE-754 Floating Point Representation:

Sign = 1 bit

Exponent = 8 bits

Mantissa = 23 bits

In Single Point IEEE-754 Floating Point Representation:

Sign = 1 bit

Exponent = 11 bits

Mantissa = 52 bits

a) -10.5

Convert the number into binary form:

(10)10 =(1010)2

(0.5)10 = (1)2

     10.5 = 1010.1

               = 1.0101 * 23

Sign = 1 (as the number is negative)

Single Precision Representation:

Biased exponent = 127+(3) = 130

130 = 10000010

Normalised matissa = 0101

The IEEE 754 Single Precision : 1 10000010 01010000000000000000000

(add 0's to normalised matissa to make it 23 bits)

Hexadecimal Representation = C1280000

Double Precision Representation:

Biased exponent = 1023+(3) = 1026

1026 = 10000000010

Normalised Mantissa = 0101

The IEEE 754 Double Precision : 1 10000000010 0101000000000000000000000000000000000000000000000000

(add 0's to normalised matissa to make it 52 bits)

Hexadecimal Representation: C025000000000000

b) 9.999 x 101 + 1.610 x 10-1 = 99.99+0.1610 = 100.151

Convert the number into binary form:

(100)10 =(1100100)2

(0.151)10 = (00100110101001111111)2

     100.151 = 1100100.0010011010100

               = 1.100100001001101010100 * 26

Sign = 0 (as the number is negative)

Single Precision Representation:

Biased exponent = 127+(6) = 133

130 = 10000101

Normalised matissa = 1001000010011010101

The IEEE 754 Single Precision : 0 10000101 10010000100110101010000

(add 0's to normalised matissa to make it 23 bits)

Hexadecimal Representation = 42C84D50

Double Precision Representation:

Biased exponent = 1023+(6) = 1029

1029 = 10000000101

Normalised Mantissa = 1001000010011010100111111011111001110110110010001011

The IEEE 754 Double Precision : 0 10000000101 11001000010011010100111111011111001110110110010001011

(add 0's to normalised matissa to make it 52 bits

Hexadecimal Representation: 405909A9FBE76C8B

c) 0.5 x (-0.4375) = - 0.21875

Convert the number into binary form:

(0.21875)10 = (0.00111)2

     0.21875 = 0.00111

               = 1.11* 2-3

Sign = 1 (as the number is negative)

Single Precision Representation:

Biased exponent = 127+(-3) = 124

124 = 01111100

Normalised matissa = 11

The IEEE 754 Single Precision :1 01111100 11000000000000000000000

(add 0's to normalised matissa to make it 23 bits)

Hexadecimal Representation = BE600000

Double Precision Representation:

Biased exponent = 1023+(-3) = 1020

1020 = 01111111100

Normalised Mantissa = 11

The IEEE 754 Double Precision : 1 01111111100 1100000000000000000000000000000000000000000000000000

(add 0's to normalised matissa to make it 52 bits

Hexadecimal Representation: BFCC000000000000

d) (1.10 x 1010) x (9.2 x 10-5) = 11000000000 x 0.000092 = 1012000

Convert the number into binary form:

(1012000)10 = (11110111000100100000)2

     1012000 = 11110111000100100000

               = 1.1110111000100100000 * 219

Sign = 0 (as the number is negative)

Single Precision Representation:

Biased exponent = 127+(19) = 146

146 = 10010010

Normalised matissa = 1110111000100100000

The IEEE 754 Single Precision :0 10010010 11101110001001000000000

(add 0's to normalised matissa to make it 23 bits)

Hexadecimal Representation = 49771200

Double Precision Representation:

Biased exponent = 1023+(19) = 1042

1042 = 49771200

Normalised Mantissa = 1110111000100100000

The IEEE 754 Double Precision : 0 10000010010 1110111000100100000000000000000000000000000000000000

(add 0's to normalised matissa to make it 52 bits

Hexadecimal Representation: 412EE24000000000


Related Solutions

represent 8912 in 16-bit binary format and then convert it to Hexadecimal form.
represent 8912 in 16-bit binary format and then convert it to Hexadecimal form.
represent -100 in 16-bit binary format and then convert it to Hexadecimal form.
represent -100 in 16-bit binary format and then convert it to Hexadecimal form.
represent -100 in 16-bit binary format and then convert it to Hexadecimal form.
represent -100 in 16-bit binary format and then convert it to Hexadecimal form.
represent -100 in 16-bit binary format and then convert it to Hexadecimal form.
represent -100 in 16-bit binary format and then convert it to Hexadecimal form.
6 – Assuming single precision IEEE 754 format, what decimal number is represent by the following...
6 – Assuming single precision IEEE 754 format, what decimal number is represent by the following 32-bit binary word? 1 10001000 10010000000000000000000
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
For JavaSript the hexadecimal (base 16) number 9a. In a JavaScript program you would write it...
For JavaSript the hexadecimal (base 16) number 9a. In a JavaScript program you would write it as: 0x9a. How would you write it in the more familiar base 10? Here is how to solve this. a.       Recall that a "normal" base 10 number has a ones place, a tens place, a hundreds place, a thousands place, etc. Another way to put it is, it has a 100's place (100=1), a 101's (101=10), a 102's place (102=100), a 103's place (103=1,000), etc....
Convert 0xCD001234 from IEEE-754 hexadecimal to single-precision floating point format. Please show every single detail for...
Convert 0xCD001234 from IEEE-754 hexadecimal to single-precision floating point format. Please show every single detail for upvote. Please do not answer otherwise.
Convert 0xCD001234 from IEEE-754 hexadecimal to single-precision floating point format. Please show every single detail for...
Convert 0xCD001234 from IEEE-754 hexadecimal to single-precision floating point format. Please show every single detail for upvote. Please do not answer otherwise.
Hexadecimal numbers are numbers in base 16. They use the following sixteen digits: 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F. They are...
Hexadecimal numbers are numbers in base 16. They use the following sixteen digits: 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F. They are widely used in computing, for example, to represent colors or network addresses of computers. Convert A2F 1316 to decimal. Show your work. Convert 456710 into hexadecimal. Show your work. Convert 00010101100011002 to hexadecimal. Explain how can you use the fact that 16 = 24? If you convert a 64-bit binary number into hexadecimal, how many hexadecimal digits does it have? Explain.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT