【问题标题】:How to calculate the float number value to store in memory using IEEE 754, 32 bit float?如何使用 IEEE 754、32 位浮点数计算要存储在内存中的浮点数?
【发布时间】:2012-03-13 11:19:54
【问题描述】:

我有以下问题:

您希望使用 IEEE 754 32 位浮点数计算浮点数值以存储在内存中。您将从 101111100010000000000000000000001 中获得哪一个确切的值?

答案是:-0.15625

谁能教我怎么做?

【问题讨论】:

  • 里面有 2? “但根本没有 2!”

标签: floating-point ieee-754


【解决方案1】:

这是一个解释 IEEE 浮点数如何编码的教程。 http://kipirvine.com/asm/workbook/floating_tut.htm

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-11-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-04-08
    • 2021-12-14
    • 2012-01-06
    相关资源
    最近更新 更多