Difference between revisions of "Template:Densely packed decimal"
Jump to navigation
Jump to search
imported>Matthiaspaul (removed unnecessary underlining) |
imported>Exessia m (Better contrast for visual clarity) |
||
| Line 12: | Line 12: | ||
!scope="col"| Description | !scope="col"| Description | ||
|- | |- | ||
| − | |style="background:# | + | |style="background:#aa0000; color: white;"|a||style="background:#aa0000; color: white;"|b||style="background:#aa0000; color: white;"|c||style="background:#00aa00; color: white;"|d||style="background:#00aa00; color: white;"|e||style="background:#00aa00; color: white;"|f||'''0'''||style="background:#0000aa; color: white;"|g||style="background:#0000aa; color: white;"|h||style="background:#0000aa; color: white;"|i||style="background:#aa0000; color: white;"|0'''abc'''||style="background:#00aa00; color: white;"|0'''def'''||style="background:#0000aa; color: white;"|0'''ghi'''|| (0–7) (0–7) (0–7) || Three small digits |
|- style="background:#f2f2f2" | |- style="background:#f2f2f2" | ||
| − | |style="background:# | + | |style="background:#aa0000; color: white;"|a||style="background:#aa0000; color: white;"|b||style="background:#aa0000; color: white;"|c||style="background:#00aa00; color: white;"|d||style="background:#00aa00; color: white;"|e||style="background:#00aa00; color: white;"|f||'''1'''||'''0'''||'''0'''||style="background:#0000aa; color: white;"|i||style="background:#aa0000; color: white;"|0'''abc'''||style="background:#00aa00; color: white;"|0'''def'''||style="background:#0000aa; color: white;"|100'''i'''|| (0–7) (0–7) (8–9) ||rowspan=3| Two small digits,<br/>one large |
|- style="background:#f2f2f2" | |- style="background:#f2f2f2" | ||
| − | |style="background:# | + | |style="background:#aa0000; color: white;"|a||style="background:#aa0000; color: white;"|b||style="background:#aa0000; color: white;"|c||style="background:#0000aa; color: white;"|g||style="background:#0000aa; color: white;"|h||style="background:#00aa00; color: white;"|f||'''1'''||'''0'''||'''1'''||style="background:#0000aa; color: white;"|i||style="background:#aa0000; color: white;"|0'''abc'''||style="background:#00aa00; color: white;"|100'''f'''||style="background:#0000aa; color: white;"|0'''ghi'''|| (0–7) (8–9) (0–7) |
|- style="background:#f2f2f2" | |- style="background:#f2f2f2" | ||
| − | |style="background:# | + | |style="background:#0000aa; color: white;"|g||style="background:#0000aa; color: white;"|h||style="background:#aa0000; color: white;"|c||style="background:#00aa00; color: white;"|d||style="background:#00aa00; color: white;"|e||style="background:#00aa00; color: white;"|f||'''1'''||'''1'''||'''0'''||style="background:#0000aa; color: white;"|i||style="background:#aa0000; color: white;"|100'''c'''||style="background:#00aa00; color: white;"|0'''def'''||style="background:#0000aa; color: white;"|0'''ghi'''|| (8–9) (0–7) (0–7) |
|- | |- | ||
| − | |style="background:# | + | |style="background:#0000aa; color: white;"|g||style="background:#0000aa; color: white;"|h||style="background:#aa0000; color: white;"|c||'''0'''||'''0'''||style="background:#00aa00; color: white;"|f||'''1'''||'''1'''||'''1'''||style="background:#0000aa; color: white;"|i||style="background:#aa0000; color: white;"|100'''c'''||style="background:#00aa00; color: white;"|100'''f'''||style="background:#0000aa; color: white;"|0'''ghi'''|| (8–9) (8–9) (0–7) ||rowspan=3| One small digit,<br/>two large |
|- | |- | ||
| − | |style="background:# | + | |style="background:#00aa00; color: white;"|d||style="background:#00aa00; color: white;"|e||style="background:#aa0000; color: white;"|c||'''0'''||'''1'''||style="background:#00aa00; color: white;"|f||'''1'''||'''1'''||'''1'''||style="background:#0000aa; color: white;"|i||style="background:#aa0000; color: white;"|100'''c'''||style="background:#00aa00; color: white;"|0'''def'''||style="background:#0000aa; color: white;"|100'''i'''|| (8–9) (0–7) (8–9) |
|- | |- | ||
| − | |style="background:# | + | |style="background:#aa0000; color: white;"|a||style="background:#aa0000; color: white;"|b||style="background:#aa0000; color: white;"|c||'''1'''||'''0'''||style="background:#00aa00; color: white;"|f||'''1'''||'''1'''||'''1'''||style="background:#0000aa; color: white;"|i||style="background:#aa0000; color: white;"|0'''abc'''||style="background:#00aa00; color: white;"|100'''f'''||style="background:#0000aa; color: white;"|100'''i'''|| (0–7) (8–9) (8–9) |
|- style="background:#f2f2f2" | |- style="background:#f2f2f2" | ||
| − | |x||x||style="background:# | + | |x||x||style="background:#aa0000; color: white;"|c||'''1'''||'''1'''||style="background:#00aa00; color: white;"|f||'''1'''||'''1'''||'''1'''||style="background:#0000aa; color: white;"|i||style="background:#aa0000; color: white;"|100'''c'''||style="background:#00aa00; color: white;"|100'''f'''||style="background:#0000aa; color: white;"|100'''i'''|| (8–9) (8–9) (8–9) || Three large digits |
|}<noinclude> | |}<noinclude> | ||
Revision as of 09:27, 30 June 2019
| 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
- ↑ 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. Unknown parameter
|dead-url=ignored (|url-status=suggested) (help)
- Cowlishaw, Michael Frederic (May 2002). "Densely Packed Decimal Encoding". IEE Proceedings – Computers and Digital Techniques. Institution of Electrical Engineers (IEE). 149 (3): 102–104. doi:10.1049/ip-cdt:20020407. ISSN 1350-2387. Retrieved 2016-02-07.
- Bonten, Jo H. M. (2007-07-18) [2006-10-05]. "Packed Decimal Encoding IEEE-754r". Archived from the original on 2007-08-24. Retrieved 2008-09-10. Unknown parameter
|dead-url=ignored (|url-status=suggested) (help)