将十六进制的浮动常数转换为64位二进制表示
更具体地说,当数字为0x1.mmmmmpeee
时,我可以解析Mantissa表示形式,即mmmmm
和exponent,即eee
eee < /代码>并将它们转换为二进制表示。将它们全部放在一起会给我我想要的东西。
但是,在等情况下,由于
8
和7 8
和7 在
0x
之后,如何将此十六进制的mantissa解析为位二进制表示?
I have seen examples/references/previous questions, but I cannot seem to get my head around some of the cases.
To be more specific, when the numbers is 0x1.MMMMMpEEE
, then I can parse out the mantissa representation, which is MMMMM
and the exponent, which is EEE
and convert them to binary representation. Putting them all together will give me what I want.
However, in cases like 0x8.60a91c16b9b28p-4
or 0x7.ffffffffffffcp-4
, because of the 8
and 7
after the 0x
, how do I parse this hexadecimal mantissa into bit-wise binary representation?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论