首页 > 解决方案 > IEEE-754十进制256实现?

问题描述

我正在尝试实现这种类型,但似乎找不到任何文档。

二进制 256 格式为尾数保留 236 位,其余 20 位用于符号和指数。另一方面,IEEE-754 BCD 格式使用符号后的两位作为标志来解释尾数的高位。如果我们使用 DPD 打包,那么低 230 位包含 69 个 BCD 数字,我猜其他 6 位必须包含两个,但是如何?

DPD 十进制 256 的布局如下:

    0..229      23 decets of 3 BCD digits each
    230..252    "combination" field containing exponent and hi bits of the
                mantissa

    253..254    2 bits following sign that are used as flags to interpret 
                the following 23 bits and/or as part of the value thereof.

    255         sign

我的问题是:我应该如何解释上面提到的“组合”字段?

标签: floating-pointieee-754bcd

解决方案


推荐阅读