コンテンツにスキップ

Densely packed decimal

出典: フリー百科事典『ウィキペディア(Wikipedia)』

Densely packed decimal (DPD)

14BCD41610使DPD3100010102423[1]

DPDChenHo

12473

010

7(0-79)DPD8027

3572


[]


1971(Tien Chi Chen)Irving T. HoChen-Ho3101023BCDDPD(Mike Cowlishaw)DPDIEEE 754-2008

[]


Chen-HoDPD207(20000-0111)89(21000, 1001)31 38
Densely packed decimal 符号化規約[2]
DPD符号 10進数字
b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 d2 d1 d0 符号化元の値 説明
a b c d e f 0 g h i 0abc 0def 0ghi (0–7) (0–7) (0–7) 全て小さい数字
a b c d e f 1 0 0 i 0abc 0def 100i (0–7) (0–7) (8–9) 小2つ、大1つ
a b c g h f 1 0 1 i 0abc 100f 0ghi (0–7) (8–9) (0–7)
g h c d e f 1 1 0 i 100c 0def 0ghi (8–9) (0–7) (0–7)
a b c 1 0 f 1 1 1 i 0abc 100f 100i (0–7) (8–9) (8–9) 小1つ、大2つ
d e c 0 1 f 1 1 1 i 100c 0def 100i (8–9) (0–7) (8–9)
g h c 0 0 f 1 1 1 i 100c 100f 0ghi (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) 全て大きい数字

b30(1)

9使3

b31b2,b1121(2-4)

b2,b17使21

b3-b11b6,b5112(5-7)

b6,b54使12

b6-b5,b3-b11(8)

3使3b9,b8使0

[]


10BCDChan-HoDPD
10進数 BCD Chen–Ho DPD
005 0000 0000 0101 000 000 0101 000 000 0101
009 0000 0000 1001 110 000 0001 000 000 1001
055 0000 0101 0101 000 010 1101 000 101 0101
079 0000 0111 1001 110 011 1001 000 111 1001
080 0000 1000 0000 101 000 0000 000 000 1010
099 0000 1001 1001 111 000 1001 000 101 1111
555 0101 0101 0101 010 110 1101 101 101 0101
999 1001 1001 1001 111 111 1001 001 111 1111

関連項目[編集]

IEEE 754#十進浮動小数点数の交換形式

参考[編集]

Bonten, J.H.M.. “Packed Decimal Encoding IEEE-754r”. 2007年8月24日時点のオリジナルよりアーカイブ。2008年9月10日閲覧。

  1. ^ *Cowlishaw, M. F. (May 2002). “Densely packed decimal encoding”. IEE Proceedings – Computers and Digital Techniques (Institution of Electrical Engineers) 149 (3): 102–104. doi:10.1049/ip-cdt:20020407. ISSN 1350-2387. 
  2. ^ Cowlishaw, M. F. (2000年10月3日). “Summary of Densely Packed Decimal encoding”. 2008年9月10日閲覧。