Template:Densely packed decimal
Revision as of 19:57, 17 January 2015 by 178.94.172.110 (talk)
DPD encoded value | Decimal digits | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b9 | b8 | b7 | b6 | b5 | b4 | b3 | b2 | b1 | b0 | d2 | d1 | d0 | Values encoded | Control | Description | |
a | b | c | d | e | f | 0 | g | h | i | 0abc | 0def | 0ghi | (0–7) (0–7) (0–7) | b3=0 Three small digits |
||
a | b | c | d | e | f | 1 | 0 | 0 | i | 0abc | 0def | 100i | (0–7) (0–7) (8–9) | b3=1, b2b1≠11 Two small digits, one large |
b2b1=00, d0=large | |
a | b | c | g | h | f | 1 | 0 | 1 | i | 0abc | 100f | 0ghi | (0–7) (8–9) (0–7) | b2b1=01, d1=large | ||
g | h | c | d | e | f | 1 | 1 | 0 | i | 100c | 0def | 0ghi | (8–9) (0–7) (0–7) | b2b1=10, d2=large | ||
g | h | c | 0 | 0 | f | 1 | 1 | 1 | i | 100c | 100f | 0ghi | (8–9) (8–9) (0–7) | b3=1, b2b1=11, b6b5≠11 One small digit, two large |
b6b5=00, d0=small | |
d | e | c | 0 | 1 | f | 1 | 1 | 1 | i | 100c | 0def | 100i | (8–9) (0–7) (8–9) | b6b5=01, d1=small | ||
a | b | c | 1 | 0 | f | 1 | 1 | 1 | i | 0abc | 100f | 100i | (0–7) (8–9) (8–9) | b6b5=10, d2=small | ||
x | x | c | 1 | 1 | f | 1 | 1 | 1 | i | 100c | 100f | 100i | (8–9) (8–9) (8–9) | b3=1, b2b1=11, b6b5=11 Three large digits |
Information
This is for transclusion in Densely packed decimal, Decimal32, Decimal64 and Decimal128. Only the table, above, will be included.
References
- ↑ Cowlishaw, M. F. (2000-10-03). "Summary of Densely Packed Decimal encoding". Retrieved 2008-09-10.
- 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.
- Bonten, J.H.M. "Packed Decimal Encoding IEEE-754r". Archived from the original on 2007-08-24. Retrieved 2008-09-10.