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

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.
a. Convert the base 4 number 13023031 base 4 directly to hexadecimal. Check your results by...
a. Convert the base 4 number 13023031 base 4 directly to hexadecimal. Check your results by converting both the original number and your answer to decimal. b. Convert the hexadecimal number 9B62 base 16 directly to base 4; then convert both the original number and your answer to binary to check your result.
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
With a detailed step-by-step process, convert the following decimal number into binary, Hexadecimal and IEEE 754...
With a detailed step-by-step process, convert the following decimal number into binary, Hexadecimal and IEEE 754 formats : 72.nn ( where nn is 80)
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
1. Convert 5.5 to hexadecimal notation using IEEE 754 single precision. Please show your work and...
1. Convert 5.5 to hexadecimal notation using IEEE 754 single precision. Please show your work and answer must be in hexadecimal notation. 2. (4 points) Convert -7.875 to hexadecimal notation using IEEE 754 single precision. Please show your work and answer must be in hexadecimal notation.
Convert the hexadecimal number directly to base 4; then convert both the original number and your...
Convert the hexadecimal number directly to base 4; then convert both the original number and your answer to binary to check your result. Please show steps and explain
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT