Show the IEEE754 single-precision representation of the decimal number 23.45. Show your work and indicate the 3 parts of the representation

60 Views Asked by At

So, I've did some work.. Not sure if it's right. Please confirm for me if I did the calculations right. Thanks!

23.45 (focus on 23 part)

22 = 11 * 2 + 1

11 = 5 * 2 + 1

5 = 2 * 2 + 1

2 = 2 * 2 + 0

so this part should be 0111 ...

(.45 part)

.45 * 2 = 0.9

.9 * 2 = 1.8

.8 * 2 = 1.6

.6 * 2 = 1.2

.2 * 2 = 0.4

.4 * 2 = 0.8

.8 * 2 = 1.6

.6 * 2 = 1.2

.2 * 2 = 0.4

.4 * 2 = 0.8

so this part is 0111001100

... So the whole number should 0111.01110011 with a bar over 0011 at the end

Moving the point left 1.1101110011 x (2^-2)

This is the part where I get confused...

3 parts of representation:

S = 0

O = 2

M = 1101110011

Is this right?