float的机器码表示:
一个float数据 = (pow(-1, sign) + fraction) * pow(2, exponent - 127)
由上图,可得:
(pow(-1, sign) + fraction) * pow(2, exponent - 127) = ( 1 + 2^(-2) ) * pow(2, 124-127) = 0.15625
其他文章:
- https://blog.csdn.net/albertsh/article/details/92385277
- https://blog.csdn.net/sinat_39370511/article/details/100134255
- https://blog.csdn.net/qq_41860358/article/details/110432015
- https://blog.csdn.net/KLFTESPACE/article/details/81150481
- https://blog.csdn.net/weixin_51995147/article/details/128525859