Difference between revisions of "Template:Densely packed decimal"

From blackwiki
Jump to navigation Jump to search
imported>Matthiaspaul
(Undid revision 904153581 by Exessia (talk) Sorry, but these colors are horrible to look at...)
imported>Monkbot
m (Task 16: replaced (2×) / removed (0×) deprecated |dead-url= and |deadurl= with |url-status=;)
Line 1: Line 1:
 
{| class="wikitable" border="1" style="text-align:center"
 
{| class="wikitable" border="1" style="text-align:center"
|+Densely packed decimal encoding rules<ref name="Cowlishaw_2000">{{cite web |author-first=Michael Frederic |author-last=Cowlishaw |author-link=Michael Frederic Cowlishaw |publisher=[[IBM]] |title=A Summary of Densely Packed Decimal encoding |orig-year=2000-10-03 |date=2007-02-13 |url=http://speleotrove.com/decimal/DPDecimal.html |access-date=2016-02-07 |dead-url=no |archive-url=https://web.archive.org/web/20150924145411/http://speleotrove.com/decimal/DPDecimal.html |archive-date=2015-09-24}}</ref>
+
|+Densely packed decimal encoding rules<ref name="Cowlishaw_2000">{{cite web |author-first=Michael Frederic |author-last=Cowlishaw |author-link=Michael Frederic Cowlishaw |publisher=[[IBM]] |title=A Summary of Densely Packed Decimal encoding |orig-year=2000-10-03 |date=2007-02-13 |url=http://speleotrove.com/decimal/DPDecimal.html |access-date=2016-02-07 |url-status=live |archive-url=https://web.archive.org/web/20150924145411/http://speleotrove.com/decimal/DPDecimal.html |archive-date=2015-09-24}}</ref>
 
|-
 
|-
 
!scope="col" colspan="10"| DPD encoded value
 
!scope="col" colspan="10"| DPD encoded value
Line 35: Line 35:
 
{{reflist}}
 
{{reflist}}
 
* {{cite journal |title=Densely Packed Decimal Encoding |author-first=Michael Frederic |author-last=Cowlishaw |author-link=Michael Frederic Cowlishaw |journal=IEE Proceedings – Computers and Digital Techniques |volume=149 |issue=3 |pages=102–104 |publisher=[[Institution of Electrical Engineers]] (IEE) |date=May 2002 |issn=1350-2387 |doi=10.1049/ip-cdt:20020407 |url=http://ieeexplore.ieee.org/xpl/login.jsp?reload=true&arnumber=1008829 |access-date=2016-02-07}}
 
* {{cite journal |title=Densely Packed Decimal Encoding |author-first=Michael Frederic |author-last=Cowlishaw |author-link=Michael Frederic Cowlishaw |journal=IEE Proceedings – Computers and Digital Techniques |volume=149 |issue=3 |pages=102–104 |publisher=[[Institution of Electrical Engineers]] (IEE) |date=May 2002 |issn=1350-2387 |doi=10.1049/ip-cdt:20020407 |url=http://ieeexplore.ieee.org/xpl/login.jsp?reload=true&arnumber=1008829 |access-date=2016-02-07}}
* {{cite web |title=Packed Decimal Encoding IEEE-754r |author-first=Jo H. M. |author-last=Bonten |orig-year=2006-10-05 |date=2007-07-18 |url=http://home.hetnet.nl/~jhm.bonten/computers/bitsandbytes/wordsizes/ibmpde.htm#dense |access-date=2008-09-10 |dead-url=yes |archive-url=https://web.archive.org/web/20070824053303/http://home.hetnet.nl/mr_1/81/jhm.bonten/computers/bitsandbytes/wordsizes/ibmpde.htm |archive-date=2007-08-24}}
+
* {{cite web |title=Packed Decimal Encoding IEEE-754r |author-first=Jo H. M. |author-last=Bonten |orig-year=2006-10-05 |date=2007-07-18 |url=http://home.hetnet.nl/~jhm.bonten/computers/bitsandbytes/wordsizes/ibmpde.htm#dense |access-date=2008-09-10 |url-status=dead |archive-url=https://web.archive.org/web/20070824053303/http://home.hetnet.nl/mr_1/81/jhm.bonten/computers/bitsandbytes/wordsizes/ibmpde.htm |archive-date=2007-08-24}}
 
</noinclude>
 
</noinclude>

Revision as of 11:14, 9 September 2019

Densely packed decimal encoding rules[1]
DPD encoded value Decimal digits
b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 d2 d1 d0 Values encoded Description
a b c d e f 0 g h i 0abc 0def 0ghi (0–7) (0–7) (0–7) Three small digits
a b c d e f 1 0 0 i 0abc 0def 100i (0–7) (0–7) (8–9) Two small digits,
one large
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)
g h c 0 0 f 1 1 1 i 100c 100f 0ghi (8–9) (8–9) (0–7) One small digit,
two large
d e c 0 1 f 1 1 1 i 100c 0def 100i (8–9) (0–7) (8–9)
a b c 1 0 f 1 1 1 i 0abc 100f 100i (0–7) (8–9) (8–9)
x x c 1 1 f 1 1 1 i 100c 100f 100i (8–9) (8–9) (8–9) Three large digits

Information

This is for transclusion in Densely packed decimal, Decimal32, Decimal64 and Decimal128. Only the table, above, will be included.

References

  1. Cowlishaw, Michael Frederic (2007-02-13) [2000-10-03]. "A Summary of Densely Packed Decimal encoding". IBM. Archived from the original on 2015-09-24. Retrieved 2016-02-07.