简体   繁体   English

如何使用32位浮点IEEE 754计算浮点数值以存储在内存中?

[英]How to calculate the float number value to store in memory using IEEE 754, 32 bit float?

I got the following question: 我有以下问题:

You want to calculate the float number value to store in memory using IEEE 754, 32 bit float. 您要计算浮点数值,以使用32位浮点IEEE 754存储在内存中。 Which one of the exactly value will you be got from 101111100010000000000000000000001 ? 您将从101111100010000000000000000000000000001中获得哪一个准确值?

And the answer is: -0.15625 答案是: -0.15625

Can anyone show me how to do that? 谁能告诉我该怎么做?

Here's a tutorial which explains how IEEE floats are encoded. 这是一个教程,解释了如何对IEEE浮点数进行编码。 http://kipirvine.com/asm/workbook/floating_tut.htm http://kipirvine.com/asm/workbook/floating_tut.htm

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM