How to calculate normalized float
Ok I have to calculate -89.95445 (float) to its representation in binary.
I was under the impresssion that to convert to binary that I have to:
1. Convert 89 to binary = 1011001
2. Convert decimal .95445 to binary = .111 1010 0010 1011 0110 1010
3. Normalize to get 1.011001 111 1010 0010 1011 0110 1010 . 2^6
4. So m = 1.011001 111 1010 0010 1011 0110 1010
and e = 2^6 = 64
5. So the sign = 1 because negative, the exponent = 0100 0000
and the bit pattern = 011001 111 1010 0010 1011 0110 1010
I don't think I am getting the right answer, can someone point me in the right direction?
|