为什么在CLA浮点运算时,2的值为0x40000000,4代表的是0x40800000,0.5代表的是0x3f000000,在进行浮点运算的时候他的数值范围是多少呢?(2的16次方?)小数点的有效位是多少?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi Hua liu,
CLA支持32bit单精度浮点,范围是在负数的时候是从 -3.402823E38 到 -1.401298E-45,而在正数的时候是从 1.401298E-45 到 3.402823E38 。
您可以找一下IEEE754的资料了解一下。
另外还有一个单精度浮点数转二进制的网址babbage.cs.qc.cuny.edu/.../index.xhtml