Difference between revisions of "Template:Hexadecimal table"

From blackwiki
Jump to navigation Jump to search
imported>Watchduck
(class="infobox" broke the layout)
Line 1: Line 1:
{| border="0" cellspacing="0" cellpadding="0" style="text-align: center; border: 2px" align=right
+
{| align=right cellspacing="0" style="text-align: center; border: 1px #aaa solid;"
|- style="background:black; height:2px"
+
|- style="background:#c0c0ff;"
| style="background:black; width:2px" |   ||  || ||    ||  || || || || || || ||
+
| style="width:45px" | '''0'''<sub>hex</sub> || = || style="width:45px" | [[0 (number)|0<sub>dec</sub>]] || = || style="width:45px" | 0<sub>oct</sub>
|-style="background:#c0c0ff; color:black; height:24px"
+
| rowspan=19 style="padding:0; border-right: 1px #aaa solid;" |
| style="background:black; width:2px" |  || style="width:45px"|'''0'''<sub>hex</sub> || = || style="width:45px"|[[0 (number)|0<sub>dec</sub>]] || = || style="width:45px"|0<sub>oct</sub> ||style="background:black; width:2px" |  || style="background:white;width:24px"|0|| style="background:white;width:24px"|0|| style="background:white;width:24px"|0|| style="background:white;width:24px"|0  ||style="background:black; width:2px" |
+
| style="background:white; width:24px" | 0 || style="background:white; width:24px" | 0 || style="background:white; width:24px" | 0 || style="background:white; width:24px" | 0
|-style="background:white; color:black; height:24px"
+
|-
| style="background:black; width:2px" ||    '''1'''<sub>hex</sub> || = || [[1 (number)|1<sub>dec</sub>]] || = || 1<sub>oct</sub> ||style="background:black; width:2px" | || style="background:white;width:24px"|0|| style="background:white;width:24px"|0|| style="background:white;width:24px"|0|| style="background:red;width:24px"|1||style="background:black; width:2px" |   
+
| '''1'''<sub>hex</sub> || = || [[1 (number)|1<sub>dec</sub>]]  || = ||  1<sub>oct</sub> ||                             0 || 0                            ||                             0 || style="background:red;" |   1
|-style="background:white; color:black; height:24px"
+
|-
| style="background:black; width:2px" | ||   '''2'''<sub>hex</sub> || = || [[2 (number)|2<sub>dec</sub>]] ||= ||  2<sub>oct</sub> ||style="background:black; width:2px" | || style="background:white;width:24px"|0|| style="background:white;width:24px"|0|| style="background:red;width:24px"|1|| style="background:white;width:24px"|0||style="background:black; width:2px" |   
+
| '''2'''<sub>hex</sub> || = || [[2 (number)|2<sub>dec</sub>]]  || = ||  2<sub>oct</sub> ||                            0 || 0                             || style="background:red;" |   1 ||                            0
|-style="background:#e1e1ff; color:black; height:24px"
+
|- style="background:#e1e1ff;"
| style="background:black; width:2px" | ||   '''3'''<sub>hex</sub> || = || [[3 (number)|3<sub>dec</sub>]] || = || 3<sub>oct</sub> ||style="background:black; width:2px" |  || style="background:white;width:24px"|0|| style="background:white;width:24px"|0|| style="background:red;width:24px"|1|| style="background:red;width:24px"|1||style="background:black; width:2px" |
+
| '''3'''<sub>hex</sub> || = || [[3 (number)|3<sub>dec</sub>]]  || = |3<sub>oct</sub> || style="background:white;" | 0 || style="background:white;" | 0 || style="background:red;" |   1 || style="background:red;" |   1
|- style="background:black; height:2px"
+
|-
| style="background:black; width:2px" |  ||     ||  ||   ||  || || || || || || ||
+
| style="padding:0; border-bottom: 1px #aaa solid;" colspan=10 |
|-style="background:white; color:black; height:24px"
+
|-
| style="background:black; width:2px" | ||   '''4'''<sub>hex</sub> || = || [[4 (number)|4<sub>dec</sub>]] ||= || 4<sub>oct</sub> ||style="background:black; width:2px" | || style="background:white;width:24px"|0|| style="background:red;width:24px"|1|| style="background:white;width:24px"|0|| style="background:white;width:24px"|0||style="background:black; width:2px" |
+
| '''4'''<sub>hex</sub> || = || [[4 (number)|4<sub>dec</sub>]]   || = ||  4<sub>oct</sub> ||                            0 || style="background:red;" |   1 ||                             0 ||                             0
|-style="background:#e1e1ff; color:black; height:24px"
+
|- style="background:#e1e1ff;"
| style="background:black; width:2px" | ||   '''5'''<sub>hex</sub> || = || [[5 (number)|5<sub>dec</sub>]] || = || 5<sub>oct</sub> ||style="background:black; width:2px" | || style="background:white;width:24px"|0|| style="background:red;width:24px"|1|| style="background:white;width:24px"|0|| style="background:red;width:24px"|1||style="background:black; width:2px" |
+
| '''5'''<sub>hex</sub> || = || [[5 (number)|5<sub>dec</sub>]]  || = |5<sub>oct</sub> || style="background:white;" | 0 || style="background:red;" |   1 || style="background:white;" | 0 || style="background:red;" |   1
|-style="background:#e1ffe1; color:black; height:24px"
+
|- style="background:#e1ffe1;"
| style="background:black; width:2px" |  ||    '''6'''<sub>hex</sub> || = || [[6 (number)|6<sub>dec</sub>]] ||= || 6<sub>oct</sub> ||style="background:black; width:2px" | || style="background:white;width:24px"|0|| style="background:red;width:24px"|1|| style="background:red;width:24px"|1|| style="background:white;width:24px"|0||style="background:black; width:2px" |
+
| '''6'''<sub>hex</sub> || = || [[6 (number)|6<sub>dec</sub>]]  || = |6<sub>oct</sub> || style="background:white;" | 0 || style="background:red;" |   1 || style="background:red;" |   1 || style="background:white;" | 0
|-style="background:white; color:black; height:24px"
+
|-
| style="background:black; width:2px" | ||'''7'''<sub>hex</sub> || = || [[7 (number)|7<sub>dec</sub>]] || = || 7<sub>oct</sub> ||style="background:black; width:2px" |  || style="background:white;width:24px"|0|| style="background:red;width:24px"|1|| style="background:red;width:24px"|1|| style="background:red;width:24px"|1||style="background:black; width:2px" |
+
| '''7'''<sub>hex</sub> || = || [[7 (number)|7<sub>dec</sub>]]   || = ||  7<sub>oct</sub> ||                             0 || style="background:red;" |   1 || style="background:red;" |  1 || style="background:red;" |   1
|- style="background:black; height:2px"
+
|-
| style="background:black; width:2px" |  ||      ||  ||  ||  || || || || || || ||
+
| style="padding:0; border-bottom: 1px #aaa solid;" colspan=10 |
|-style="background:white; color:black; height:24px"
+
|-
| style="background:black; width:2px" |  || '''8'''<sub>hex</sub> || = || [[8 (number)|8<sub>dec</sub>]] || = || 10<sub>oct</sub> ||style="background:black; width:2px" | || style="background:red;width:24px"|1|| style="background:white;width:24px"|0|| style="background:white;width:24px"|0|| style="background:white;width:24px"|0||style="background:black; width:2px" | 
+
| '''8'''<sub>hex</sub> || = || [[8 (number)|8<sub>dec</sub>]]   || = || 10<sub>oct</sub> || style="background:red;" |   1 ||                             0 ||                             0 ||                             0
|-style="background:#e1ffe1; color:black; height:24px"
+
|- style="background:#e1ffe1;"
| style="background:black; width:2px" |  ||  '''9'''<sub>hex</sub> || = || [[9 (number)|9<sub>dec</sub>]] ||= ||  11<sub>oct</sub> ||style="background:black; width:2px" |  || style="background:red;width:24px"|1|| style="background:white;width:24px"|0|| style="background:white;width:24px"|0|| style="background:red;width:24px"|1||style="background:black; width:2px" | 
+
| '''9'''<sub>hex</sub> || = || [[9 (number)|9<sub>dec</sub>]]  || = || 11<sub>oct</sub> || style="background:red;" |   1 || style="background:white;" | 0 || style="background:white;" | 0 || style="background:red;" |  1
|-style="background:#e1e1ff; color:black; height:24px"
+
|- style="background:#e1e1ff;"
| style="background:black; width:2px" |  ||  '''A'''<sub>hex</sub>|| = || [[10 (number)|10<sub>dec</sub>]] || = || 12<sub>oct</sub> ||style="background:black; width:2px" |  || style="background:red;width:24px"|1|| style="background:white;width:24px"|0|| style="background:red;width:24px"|1|| style="background:white;width:24px"|0||style="background:black; width:2px" | 
+
| '''A'''<sub>hex</sub> || = || [[10 (number)|10<sub>dec</sub>]] || = || 12<sub>oct</sub> || style="background:red;" |   1 || style="background:white;" | 0 || style="background:red;" |   1 || style="background:white;" | 0
|-style="background:white; color:black; height:24px"
+
|-
| style="background:black; width:2px" |  || '''B'''<sub>hex</sub>|| = || [[11 (number)|11<sub>dec</sub>]] || = ||  13<sub>oct</sub> ||style="background:black; width:2px" |  || style="background:red;width:24px"|1|| style="background:white;width:24px"|0|| style="background:red;width:24px"|1|| style="background:red;width:24px"|1||style="background:black; width:2px" | 
+
| '''B'''<sub>hex</sub> || = || [[11 (number)|11<sub>dec</sub>]] || = || 13<sub>oct</sub> || style="background:red;" |   1 ||                             0 || style="background:red;" |   1 || style="background:red;" |   1
|- style="background:black; height:2px"
+
|-
| style="background:black; width:2px" |  ||      ||  || ||  || || || || || || ||
+
| style="padding:0; border-bottom: 1px #aaa solid;" colspan=10 |
|-style="background:#e1e1ff; color:black; height:24px"
+
|- style="background:#e1e1ff;"
| style="background:black; width:2px" |  ||  '''C'''<sub>hex</sub>|| = || [[12 (number)|12<sub>dec</sub>]] || = || 14<sub>oct</sub> ||style="background:black; width:2px" |  || style="background:red;width:24px"|1|| style="background:red;width:24px"|1|| style="background:white;width:24px"|0|| style="background:white;width:24px"|0||style="background:black; width:2px" | 
+
| '''C'''<sub>hex</sub> || = || [[12 (number)|12<sub>dec</sub>]] || = || 14<sub>oct</sub> || style="background:red;" |  1 || style="background:red;" |   1 || style="background:white;" | 0 || style="background:white;" | 0
|-style="background:white; color:black; height:24px"
+
|-
| style="background:black; width:2px" |  || '''D'''<sub>hex</sub>|| = || [[13 (number)|13<sub>dec</sub>]] ||= ||  15<sub>oct</sub> ||style="background:black; width:2px" |  || style="background:red;width:24px"|1|| style="background:red;width:24px"|1|| style="background:white;width:24px"|0|| style="background:red;width:24px"|1||style="background:black; width:2px" | 
+
| '''D'''<sub>hex</sub> || = || [[13 (number)|13<sub>dec</sub>]] || = || 15<sub>oct</sub> || style="background:red;" |   1 || style="background:red;" |   1 ||                            0 || style="background:red;" |   1
|-style="background:white; color:black; height:24px"
+
|-
| style="background:black; width:2px" |  || '''E'''<sub>hex</sub>|| = || [[14 (number)|14<sub>dec</sub>]] ||= ||  16<sub>oct</sub> ||style="background:black; width:2px" |  || style="background:red;width:24px"|1|| style="background:red;width:24px"|1|| style="background:red;width:24px"|1|| style="background:white;width:24px"|0||style="background:black; width:2px" | 
+
| '''E'''<sub>hex</sub> || = || [[14 (number)|14<sub>dec</sub>]] || = || 16<sub>oct</sub> || style="background:red;" |   1 || style="background:red;" |  1 || style="background:red;" |  1 ||                            0
|-style="background:#c0c0ff; color:black; height:24px"
+
|- style="background:#c0c0ff;"
| style="background:black; width:2px" |  || '''F'''<sub>hex</sub>|| = || [[15 (number)|15<sub>dec</sub>]] || = || 17<sub>oct</sub> ||style="background:black; width:2px" |  || style="background:red;width:24px"|1|| style="background:red;width:24px"|1|| style="background:red;width:24px"|1|| style="background:red;width:24px"|1||style="background:black; width:2px" | 
+
| '''F'''<sub>hex</sub> || = || [[15 (number)|15<sub>dec</sub>]] || = || 17<sub>oct</sub> || style="background:red;" |   1 || style="background:red;" |   1 || style="background:red;" |   1 || style="background:red;" |   1
|- style="background:black; height:2px"
 
| style="background:black; width:2px" |  ||      || ||    ||  || || || || || || ||
 
 
|}<noinclude>
 
|}<noinclude>
 
<br clear="all"/>
 
<br clear="all"/>
 +
 
== Additional context ==
 
== Additional context ==
 
[[File:Logical connectives Hasse diagram.svg|thumb|upright=2|[[Hasse diagram]] of [[Logical connective]]s]]
 
[[File:Logical connectives Hasse diagram.svg|thumb|upright=2|[[Hasse diagram]] of [[Logical connective]]s]]
 
The picture and this template share the same colors.
 
The picture and this template share the same colors.
  
See also:  
+
See also:
 
 
 
* [[Template:Numeral systems for computation]]
 
* [[Template:Numeral systems for computation]]
 
* [[Template:Logical connectives table and Hasse diagram]]
 
* [[Template:Logical connectives table and Hasse diagram]]
 
* [[commons:Category:Colored nibbles (blue, green, white)]]
 
* [[commons:Category:Colored nibbles (blue, green, white)]]
 
 
  
 
[[Category:Computing terminology|–{{PAGENAME}}]]
 
[[Category:Computing terminology|–{{PAGENAME}}]]
 
[[Category:Computing templates|{{PAGENAME}}]]
 
[[Category:Computing templates|{{PAGENAME}}]]
 
</noinclude>
 
</noinclude>

Revision as of 07:52, 26 June 2015

0hex = 0dec = 0oct 0 0 0 0
1hex = 1dec = 1oct 0 0 0 1
2hex = 2dec = 2oct 0 0 1 0
3hex = 3dec = 3oct 0 0 1 1
4hex = 4dec = 4oct 0 1 0 0
5hex = 5dec = 5oct 0 1 0   1
6hex = 6dec = 6oct 0 1 1 0
7hex = 7dec = 7oct 0 1 1 1
8hex = 8dec = 10oct 1 0 0 0
9hex = 9dec = 11oct 1 0 0 1
Ahex = 10dec = 12oct 1 0 1 0
Bhex = 11dec = 13oct 1 0 1 1
Chex = 12dec = 14oct 1 1 0 0
Dhex = 13dec = 15oct 1 1 0 1
Ehex = 14dec = 16oct 1 1 1 0
Fhex = 15dec = 17oct 1 1 1 1


Additional context

The picture and this template share the same colors.

See also: