In binary notation, what is the meaning of the digits after the radix point “.”?

后端 未结 7 545
感情败类
感情败类 2020-12-28 13:22

I have this example on how to convert from a base 10 number to IEEE 754 float representation

Number: 45.25 (base 10) = 101101.01 (base 2) Sign: 0
Normalized          


        
7条回答
  •  自闭症患者
    2020-12-28 13:50

    Think of it this way

    (dot) 2^-1 2^-2 2^-3 etc

    so

    . 0/2 + 1/4 + 0/8 + 0/16 etc

    See http://floating-point-gui.de/formats/binary/

提交回复
热议问题