Content deleted Content added
adding info about bit numbering, removing duplicate format hint |
better description for DPD encoding |
||
Line 155:
|}
The 10-bit DPD to 3-digit BCD transcoding for the declets is given by the following table. b<sub>9</sub> … b<sub>0</sub> are the bits of the DPD, and d<sub>2</sub> … d<sub>0</sub> are the three BCD digits. Be aware that the bit numbering used here for e.g. b<sub>9</sub> … b<sub>0</sub> is in opposite direction than that used in the paper for the IEEE 754 standard b<sub>0</sub> … b<sub>9</sub>, add. the decimal digits are numbered 0-based here while in opposite direction and 1-based in the IEEE 754 paper. The bits on white background are not counting for the value, but signal how to understand / shift the other bits. The concept is to denote which digits are small (0 … 7) and encoded in three bits, and which are not, then calculated from a prefix of '100', and one bit specifying if 8 or 9.
{{Densely packed decimal}}
Line 162 ⟶ 161:
The 8 decimal values whose digits are all 8s or 9s have four codings each.
The bits marked x in the table above are [[don't care|ignored]] on input, but will always be 0 in computed results.
(The
In the above cases, with the ''true significand'' as the sequence of decimal digits decoded, the value represented is
|