2012年11月10日 星期六

IEEE754 convert

for example : 47.75


(1) convert to binary :

    47.75 = 10111.11

(2) Normalization:

    1.011111 x 2^5

(3)

   The exponent ---> +5

   +5 + 127 = +132

  132 = 10000100


(4)

1bit                          8bits                      23bits
0 : postive
1 : negative            exponent                  others
0                         10000100                   01111100000000000000000
   

沒有留言:

張貼留言