-
Notifications
You must be signed in to change notification settings - Fork 0
/
Counting.htm
246 lines (241 loc) · 6.76 KB
/
Counting.htm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
<meta charset="UTF-8" />
<style>
a { text-decoration: none; }
a:hover { text-decoration: underline; }
a[ul] { text-decoration: underline; }
table[_] {
border-collapse: collapse;
text-align: center;
}
table[_] th,
table[_] td {
border: 1px solid;
padding: 1px 2px;
}
th[x], td[x] { border: none !important; }
</style>
<body onload="var x = document.getElementsByTagName( 'a' ); for ( var i = 0; i < x.length; ++ i ) { !( x[i].href ) && ( x[i].href = x[i].innerText ); };">
<pre style="quotes: none; white-space: pre-wrap; word-wrap: break-word; tab-size: 4">
<table>
<td>
<table _>
<style>
q[_0] { color: #bfbfff; }
q[_1] { color: #7f7fff; }
q[_2] { color: #a6a6a6; }
</style>
<tr>
<th>Decimal</th>
<th>Hexadecimal</th>
<th>Octal</th>
<th>Binary</th></tr>
<tr>
<td>0</td>
<td><q _0>0<q _1>x</q></q><q _2>0</q>0</td>
<td><q _0>0<q _1>o</q></q><q _2>00</q>0</td>
<td><q _0>0<q _1>b</q></q><q _2>0000000</q>0</td></tr>
<tr>
<td>1</td>
<td><q _0>0<q _1>x</q></q><q _2>0</q>1</td>
<td><q _0>0<q _1>o</q></q><q _2>00</q>1</td>
<td><q _0>0<q _1>b</q></q><q _2>0000000</q>1</td></tr>
<tr>
<td>2</td>
<td><q _0>0<q _1>x</q></q><q _2>0</q>2</td>
<td><q _0>0<q _1>o</q></q><q _2>00</q>2</td>
<td><q _0>0<q _1>b</q></q><q _2>000000</q>10</td></tr>
<tr>
<td>3</td>
<td><q _0>0<q _1>x</q></q><q _2>0</q>3</td>
<td><q _0>0<q _1>o</q></q><q _2>00</q>3</td>
<td><q _0>0<q _1>b</q></q><q _2>000000</q>11</td></tr>
<tr>
<td>4</td>
<td><q _0>0<q _1>x</q></q><q _2>0</q>4</td>
<td><q _0>0<q _1>o</q></q><q _2>00</q>4</td>
<td><q _0>0<q _1>b</q></q><q _2>00000</q>100</td></tr>
<tr>
<td>5</td>
<td><q _0>0<q _1>x</q></q><q _2>0</q>5</td>
<td><q _0>0<q _1>o</q></q><q _2>00</q>5</td>
<td><q _0>0<q _1>b</q></q><q _2>00000</q>101</td></tr>
<tr>
<td>6</td>
<td><q _0>0<q _1>x</q></q><q _2>0</q>6</td>
<td><q _0>0<q _1>o</q></q><q _2>00</q>6</td>
<td><q _0>0<q _1>b</q></q><q _2>00000</q>110</td></tr>
<tr>
<td>7</td>
<td><q _0>0<q _1>x</q></q><q _2>0</q>7</td>
<td><q _0>0<q _1>o</q></q><q _2>00</q>7</td>
<td><q _0>0<q _1>b</q></q><q _2>00000</q>111</td></tr>
<tr>
<td>8</td>
<td><q _0>0<q _1>x</q></q><q _2>0</q>8</td>
<td><q _0>0<q _1>o</q></q><q _2>0</q>10</td>
<td><q _0>0<q _1>b</q></q><q _2>0000</q>1000</td></tr>
<tr>
<td>9</td>
<td><q _0>0<q _1>x</q></q><q _2>0</q>9</td>
<td><q _0>0<q _1>o</q></q><q _2>0</q>11</td>
<td><q _0>0<q _1>b</q></q><q _2>0000</q>1001</td></tr>
<tr>
<td>10</td>
<td><q _0>0<q _1>x</q></q><q _2>0</q>A</td>
<td><q _0>0<q _1>o</q></q><q _2>0</q>12</td>
<td><q _0>0<q _1>b</q></q><q _2>0000</q>1010</td></tr>
<tr>
<td>11</td>
<td><q _0>0<q _1>x</q></q><q _2>0</q>B</td>
<td><q _0>0<q _1>o</q></q><q _2>0</q>13</td>
<td><q _0>0<q _1>b</q></q><q _2>0000</q>1011</td></tr>
<tr>
<td>12</td>
<td><q _0>0<q _1>x</q></q><q _2>0</q>C</td>
<td><q _0>0<q _1>o</q></q><q _2>0</q>14</td>
<td><q _0>0<q _1>b</q></q><q _2>0000</q>1100</td></tr>
<tr>
<td>13</td>
<td><q _0>0<q _1>x</q></q><q _2>0</q>D</td>
<td><q _0>0<q _1>o</q></q><q _2>0</q>15</td>
<td><q _0>0<q _1>b</q></q><q _2>0000</q>1101</td></tr>
<tr>
<td>14</td>
<td><q _0>0<q _1>x</q></q><q _2>0</q>E</td>
<td><q _0>0<q _1>o</q></q><q _2>0</q>16</td>
<td><q _0>0<q _1>b</q></q><q _2>0000</q>1110</td></tr>
<tr>
<td>15</td>
<td><q _0>0<q _1>x</q></q><q _2>0</q>F</td>
<td><q _0>0<q _1>o</q></q><q _2>0</q>17</td>
<td><q _0>0<q _1>b</q></q><q _2>0000</q>1111</td></tr>
<tr>
<td>16</td>
<td><q _0>0<q _1>x</q></q>10</td>
<td><q _0>0<q _1>o</q></q><q _2>0</q>20</td>
<td><q _0>0<q _1>b</q></q><q _2>000</q>10000</td></tr>
<tr>
<td colspan="4">...</td></tr>
<tr>
<td>255</td>
<td><q _0>0<q _1>x</q></q>FF</td>
<td><q _0>0<q _1>o</q></q>377</td>
<td><q _0>0<q _1>b</q></q>11111111</td></tr>
</table>
</td>
<td>
<table _>
<tr>
<td x colspan="2"><br/>1-Byte signed</td></tr>
<tr>
<td><b>0</b><br/>0000 0000</td>
<td><b>-1</b><br/>1111 1111</td></tr>
<tr>
<td><b>1</b><br/>0000 0001</td>
<td><b>-2</b><br/>1111 1110</td></tr>
<tr>
<td><b>2</b><br/>0000 0010</td>
<td><b>-3</b><br/>1111 1101</td></tr>
<tr>
<td><b>3</b><br/>0000 0011</td>
<td><b>-4</b><br/>1111 1100</td></tr>
<tr>
<td><b>4</b><br/>0000 0100</td>
<td><b>-5</b><br/>1111 1011</td></tr>
<tr>
<td><b>5</b><br/>0000 0101</td>
<td><b>-6</b><br/>1111 1010</td></tr>
<tr>
<td><b>6</b><br/>0000 0110</td>
<td><b>-7</b><br/>1111 1001</td></tr>
<tr>
<td><b>7</b><br/>0000 0111</td>
<td><b>-8</b><br/>1111 1000</td></tr>
<tr>
<td><b>8</b><br/>0000 1000</td>
<td><b>-9</b><br/>1111 0111</td></tr>
<tr>
<td><b>9</b><br/>0000 1001</td>
<td><b>-10</b><br/>1111 0110</td></tr>
<tr>
<td><b>10</b><br/>0000 1010</td>
<td><b>-11</b><br/>1111 0101</td></tr>
<tr>
<td><b>11</b><br/>0000 1011</td>
<td><b>-12</b><br/>1111 0100</td></tr>
<tr>
<td><b>12</b><br/>0000 1100</td>
<td><b>-13</b><br/>1111 0011</td></tr>
<tr>
<td><b>13</b><br/>0000 1101</td>
<td><b>-14</b><br/>1111 0010</td></tr>
<tr>
<td><b>14</b><br/>0000 1110</td>
<td><b>-15</b><br/>1111 0001</td></tr>
<tr>
<td><b>15</b><br/>0000 1111</td>
<td><b>-16</b><br/>1111 0000</td></tr>
<tr>
<td><b>16</b><br/>0001 0000</td>
<td><b>-17</b><br/>1110 1111</td></tr>
<tr>
<td>...</td>
<td>...</td></tr>
<tr>
<td><b>125</b><br/>0111 1101</td>
<td><b>-126</b><br/>1000 0010</td></tr>
<tr>
<td><b>126</b><br/>0111 1110</td>
<td><b>-127</b><br/>1000 0001</td></tr>
<tr>
<td><b>127</b><br/>0111 1111</td>
<td><b>-128</b><br/>1000 0000</td></tr>
</table>
</td>
<td style="vertical-align: top">
<table _>
<tr>
<td x>1-Byte<br/>signed/unsigned</td></tr>
<tr>
<td><b>0</b><br/>0000 0000</td></tr>
<tr>
<td>...<br/><br/></td></tr>
<tr>
<td><b>127</b><br/>0111 1111</td></tr>
<tr>
<td><b>-128 128</b><br/>1000 0000</td></tr>
<tr>
<td><b>-127 129</b><br/>1000 0001</td></tr>
<tr>
<td><b>-126 130</b><br/>1000 0010</td></tr>
<tr>
<td><b>-125 131</b><br/>1000 0011</td></tr>
<tr>
<td><b>-124 132</b><br/>1000 0100</td></tr>
<tr>
<td><b>-123 133</b><br/>1000 0101</td></tr>
<tr>
<td>...<br/><br/></td></tr>
<tr>
<td><b>-6 250</b><br/>1111 1010</td></tr>
<tr>
<td><b>-5 251</b><br/>1111 1011</td></tr>
<tr>
<td><b>-4 252</b><br/>1111 1100</td></tr>
<tr>
<td><b>-3 253</b><br/>1111 1101</td></tr>
<tr>
<td><b>-2 254</b><br/>1111 1110</td></tr>
<tr>
<td><b>-1 255</b><br/>1111 1111</td></tr>
<tr>
<td x><br/>2^8 = 256</td></tr>
</table>
</td>
</table>
<a>https://github.com/MasterInQuestion/Markup/blob/main/Counting.htm</a>
</pre>
<!--
Pre-rendered: https://github.com/MasterInQuestion/attach/raw/main/MasterInQuestion/Markup/2/Counting.p52.20.webp
See also: https://github.com/MasterInQuestion/Markup/issues/2
-->