1. Engineering
  2. Computer Science
  3. i need help with 3 this is my answer for...

Question: i need help with 3 this is my answer for...

Question details

2 Floating Point Number Representation (15 marks) 1. Represent -76.678595 as an IEEE single precision floating point number (binary and 2. Represent 19.459931 as an IEEE single precision floating point number(binary and hexadecimal) 3. Add the signed binary fixed point versions of the above two floating numbers using binary arithmetic and report your answer, showing your working. You must show your work to get full credit.I need help with 3. This is my answer for 1 and 2

a)-76.678595 = 1001100.10101101101110000 in binary (using the technique in 1)

Now normalize: 1.00110010101101101110000x26

The mantissa is 00110010101101101110000

The exponent is 6+127=133, which is 10000101

The number is negative so the sign bit is 1

So -76.678595 in single precision format is 1 10000101 00110010101101101110000

In hexadecimal, this is : 0xC2995B70

b)19.459931 = 10011.01110101101 (using the technique in 1)

Now normalize: 1.00110111010110100000000x24

The mantissa is 001101110101101

The exponent is 4+124=131, which is 10000011

The number is positive so the sign bit is 0

So 19.459931 in single precision format is 0 10000011 00110111010110100000000

In hexadecimal, this is : 0x419BAD00

The answer needs to be --57.218664.

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution