Difference between revisions of "Template:Densely packed decimal"
Jump to navigation
Jump to search
(←Replaced content with 'i like chese') |
imported>ClueBot m (Reverting possible vandalism by 68.108.90.108 to version by AJCham. False positive? Report it. Thanks, ClueBot. (770828) (Bot)) |
||
| Line 1: | Line 1: | ||
| − | i | + | {| class="wikitable" border="1" style="text-align:center" |
| + | |+Densely packed decimal encoding rules<ref name=Cowlishaw2000>{{cite web |url=http://speleotrove.com/decimal/DPDecimal.html |title=Summary of Densely Packed Decimal encoding |last=Cowlishaw |first=M. F. |authorlink=Mike Cowlishaw |date=2000-10-03 |accessdate=2008-09-10}}</ref> | ||
| + | |- | ||
| + | !b9!!b8!!b7!!b6!!b5!!b4!!b3!!b2!!b1!!b0!!d2!!d1!!d0!! Values encoded !! Digit pattern | ||
| + | |- | ||
| + | |style="background:#cef2e0"|a||style="background:#cef2e0"|b||style="background:#cef2e0"|c||style="background:#cedff2"|d||style="background:#cedff2"|e||style="background:#cedff2"|f||'''0'''||style="background:#ddcef2"|g||style="background:#ddcef2"|h||style="background:#ddcef2"|i||style="background:#cef2e0"|0'''abc'''||style="background:#cedff2"|0'''def'''||style="background:#ddcef2"|0'''ghi'''||(0–7) (0–7) (0–7) || Three small digits | ||
| + | |- style="background:#f2f2f2" | ||
| + | |style="background:#cef2e0"|a||style="background:#cef2e0"|b||style="background:#cef2e0"|c||style="background:#cedff2"|d||style="background:#cedff2"|e||style="background:#cedff2"|f||'''1'''||'''0'''||'''0'''||style="background:#ddcef2"|i||style="background:#cef2e0"|0'''abc'''||style="background:#cedff2"|0'''def'''||style="background:#ddcef2"|100'''i'''||(0–7) (0–7) (8–9) ||rowspan=3| Two small digits,<br/>one large | ||
| + | |- style="background:#f2f2f2" | ||
| + | |style="background:#cef2e0"|a||style="background:#cef2e0"|b||style="background:#cef2e0"|c||style="background:#ddcef2"|d||style="background:#ddcef2"|e||style="background:#cedff2"|f||'''1'''||'''0'''||'''1'''||style="background:#ddcef2"|i||style="background:#cef2e0"|0'''abc'''||style="background:#cedff2"|100'''f'''||style="background:#ddcef2"|0'''dei'''||(0–7) (8–9) (0–7) | ||
| + | |- style="background:#f2f2f2" | ||
| + | |style="background:#ddcef2"|a||style="background:#ddcef2"|b||style="background:#cef2e0"|c||style="background:#cedff2"|d||style="background:#cedff2"|e||style="background:#cedff2"|f||'''1'''||'''1'''||'''0'''||style="background:#ddcef2"|i||style="background:#cef2e0"|100'''c'''||style="background:#cedff2"|0'''def'''||style="background:#ddcef2"|0'''abi'''||(8–9) (0–7) (0–7) | ||
| + | |- | ||
| + | |style="background:#cef2e0"|a||style="background:#cef2e0"|b||style="background:#cef2e0"|c||'''1'''||'''0'''||style="background:#cedff2"|f||'''1'''||'''1'''||'''1'''||style="background:#ddcef2"|i||style="background:#cef2e0"|0'''abc'''||style="background:#cedff2"|100'''f'''||style="background:#ddcef2"|100'''i'''||(0–7) (8–9) (8–9) ||rowspan=3| One small digit,<br/>two large | ||
| + | |- | ||
| + | |style="background:#cedff2"|a||style="background:#cedff2"|b||style="background:#cef2e0"|c||'''0'''||'''1'''||style="background:#cedff2"|f||'''1'''||'''1'''||'''1'''||style="background:#ddcef2"|i||style="background:#cef2e0"|100'''c'''||style="background:#cedff2"|0'''abf'''||style="background:#ddcef2"|100'''i'''||(8–9) (0–7) (8–9) | ||
| + | |- | ||
| + | |style="background:#ddcef2"|a||style="background:#ddcef2"|b||style="background:#cef2e0"|c||'''0'''||'''0'''||style="background:#cedff2"|f||'''1'''||'''1'''||'''1'''||style="background:#ddcef2"|i||style="background:#cef2e0"|100'''c'''||style="background:#cedff2"|100'''f'''||style="background:#ddcef2"|0'''abi'''||(8–9) (8–9) (0–7) | ||
| + | |- style="background:#f2f2f2" | ||
| + | |x||x||style="background:#cef2e0"|c||'''1'''||'''1'''||style="background:#cedff2"|f||'''1'''||'''1'''||'''1'''||style="background:#ddcef2"|i||style="background:#cef2e0"|100'''c'''||style="background:#cedff2"|100'''f'''||style="background:#ddcef2"|100'''i'''||(8–9) (8–9) (8–9) || Three large digits | ||
| + | |}<noinclude> | ||
| + | |||
| + | == Information == | ||
| + | This is for transclusion in [[Densely packed decimal]], [[Decimal32]], [[Decimal64]] and [[Decimal128]]. Only the table, above, will be included. | ||
| + | |||
| + | == References == | ||
| + | {{reflist}} | ||
| + | |||
| + | *{{cite journal |last=Cowlishaw |first=M. F. |authorlink=Mike Cowlishaw |title=Densely packed decimal encoding |journal=IEE Proceedings – Computers and Digital Techniques |issn=1350-2387 |volume=149 |issue=3 |pages=102-104 |publisher=[[Institution of Electrical Engineers]] |month=May |year=2002 |doi=10.1049/ip-cdt:20020407}} | ||
| + | *{{cite web |url=http://home.hetnet.nl/~jhm.bonten/computers/bitsandbytes/wordsizes/ibmpde.htm#dense |title=Packed Decimal Encoding IEEE-754r |first=J.H.M. |last=Bonten |archiveurl=http://web.archive.org/web/20070824053303/http://home.hetnet.nl/mr_1/81/jhm.bonten/computers/bitsandbytes/wordsizes/ibmpde.htm |archivedate=2007-08-24 |accessdate=2008-09-10}} | ||
| + | </noinclude> | ||
Revision as of 06:28, 19 September 2009
| b9 | b8 | b7 | b6 | b5 | b4 | b3 | b2 | b1 | b0 | d2 | d1 | d0 | Values encoded | Digit pattern |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 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 | d | e | f | 1 | 0 | 1 | i | 0abc | 100f | 0dei | (0–7) (8–9) (0–7) | |
| a | b | c | d | e | f | 1 | 1 | 0 | i | 100c | 0def | 0abi | (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) | One small digit, two large |
| a | b | c | 0 | 1 | f | 1 | 1 | 1 | i | 100c | 0abf | 100i | (8–9) (0–7) (8–9) | |
| a | b | c | 0 | 0 | f | 1 | 1 | 1 | i | 100c | 100f | 0abi | (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) | 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. (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. Unknown parameter
|month=ignored (help) - Bonten, J.H.M. "Packed Decimal Encoding IEEE-754r". Archived from the original on 2007-08-24. Retrieved 2008-09-10.