b9...b0 are the bits of the DPD, and d2...d0 are the three BCD digits.
{{Densely packed decimal}}
{| class="wikitable" border="1" style="text-align:right"
|-
!b9!!b8!!b7!!b6!!b5!!b4!!b3!!b2!!b1!!b0!!d2!!d1!!d0!!values encoded
|-
|a||b||c||d||e||f||0||g||h||i||abc||def||ghi||(0...7)(0...7)(0...7)
|-
|a||b||c||d||e||f||1||0||0||i||abc||def||100i||(0...7)(0...7)(8...9)
|-
|a||b||c||d||e||f||1||0||1||i||abc||100f||dei||(0...7)(8...9)(0...7)
|-
|a||b||c||1||0||f||1||1||1||i||abc||100f||100i||(0...7)(8...9)(8...9)
|-
|a||b||c||d||e||f||1||1||0||i||100c||def||abi||(8...9)(0...7)(0...7)
|-
|a||b||c||0||1||f||1||1||1||i||100c||abf||100i||(8...9)(0...7)(8...9)
|-
|a||b||c||0||0||f||1||1||1||i||100c||100f||abi||(8...9)(8...9)(0...7)
|-
|x||x||c||1||1||f||1||1||1||i||100c||100f||100i||(8...9)(8...9)(8...9)
|}
Decimal values of the form, as a regular expression, (8|9)(8|9)(8|9), eight values, have four codings each.
* [[Primitive data type]]
== References ==
{{reflist}}
[[Category:Computer arithmetic]]
|