Шестнайсетична бройна система: Разлика между версии

Изтрито е съдържание Добавено е съдържание
Viraldim (беседа | приноси)
Viraldim (беседа | приноси)
Ред 4:
==Представяне==
====Използване на 0–9 и A–F====
<table border="0" cellspacing="0" cellpadding="0" class="infobox" style="text-align: center; border: 2px">
<tr style="background:black; height:2px">
<td style="background:black; width:2px"></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr style="background:#c0c0ff; color:black; height:24px">
<td style="background:black; width:2px"></td>
<td style="width:5px"><b>0</b><sub>hex</sub></td>
<td>=</td>
<td style="width:5px">0<sub>dec</sub></td>
<td>=</td>
<td style="width:5px">0<sub>oct</sub></td>
<td style="background:black; width:2px"></td>
<td style="background:white;width:24px">0</td>
<td style="background:white;width:24px">0</td>
<td style="background:white;width:24px">0</td>
<td style="background:white;width:24px">0</td>
<td style="background:black; width:2px"></td>
</tr>
<tr style="background:white; color:black; height:24px">
<td style="background:black; width:2px"></td>
<td><b>1</b><sub>hex</sub></td>
<td>=</td>
<td>1<sub>dec</sub></td>
<td>=</td>
<td>1<sub>oct</sub></td>
<td style="background:black; width:2px"></td>
<td style="background:white;width:24px">0</td>
<td style="background:white;width:24px">0</td>
<td style="background:white;width:24px">0</td>
<td style="background:red;width:24px">1</td>
<td style="background:black; width:2px"></td>
</tr>
<tr style="background:white; color:black; height:24px">
<td style="background:black; width:2px"></td>
<td><b>2</b><sub>hex</sub></td>
<td>=</td>
<td>2<sub>dec</sub></td>
<td>=</td>
<td>2<sub>oct</sub></td>
<td style="background:black; width:2px"></td>
<td style="background:white;width:24px">0</td>
<td style="background:white;width:24px">0</td>
<td style="background:red;width:24px">1</td>
<td style="background:white;width:24px">0</td>
<td style="background:black; width:2px"></td>
</tr>
<tr style="background:#e1e1ff; color:black; height:24px">
<td style="background:black; width:2px"></td>
<td><b>3</b><sub>hex</sub></td>
<td>=</td>
<td>3<sub>dec</sub></td>
<td>=</td>
<td>3<sub>oct</sub></td>
<td style="background:black; width:2px"></td>
<td style="background:white;width:24px">0</td>
<td style="background:white;width:24px">0</td>
<td style="background:red;width:24px">1</td>
<td style="background:red;width:24px">1</td>
<td style="background:black; width:2px"></td>
</tr>
<tr style="background:black; height:2px">
<td style="background:black; width:2px"></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr style="background:white; color:black; height:24px">
<td style="background:black; width:2px"></td>
<td><b>4</b><sub>hex</sub></td>
<td>=</td>
<td>4<sub>dec</sub></td>
<td>=</td>
<td>4<sub>oct</sub></td>
<td style="background:black; width:2px"></td>
<td style="background:white;width:24px">0</td>
<td style="background:red;width:24px">1</td>
<td style="background:white;width:24px">0</td>
<td style="background:white;width:24px">0</td>
<td style="background:black; width:2px"></td>
</tr>
<tr style="background:#e1e1ff; color:black; height:24px">
<td style="background:black; width:2px"></td>
<td><b>5</b><sub>hex</sub></td>
<td>=</td>
<td>5<sub>dec</sub></td>
<td>=</td>
<td>5<sub>oct</sub></td>
<td style="background:black; width:2px"></td>
<td style="background:white;width:24px">0</td>
<td style="background:red;width:24px">1</td>
<td style="background:white;width:24px">0</td>
<td style="background:red;width:24px">1</td>
<td style="background:black; width:2px"></td>
</tr>
<tr style="background:#e1ffe1; color:black; height:24px">
<td style="background:black; width:2px"></td>
<td><b>6</b><sub>hex</sub></td>
<td>=</td>
<td>6<sub>dec</sub></td>
<td>=</td>
<td>6<sub>oct</sub></td>
<td style="background:black; width:2px"></td>
<td style="background:white;width:24px">0</td>
<td style="background:red;width:24px">1</td>
<td style="background:red;width:24px">1</td>
<td style="background:white;width:24px">0</td>
<td style="background:black; width:2px"></td>
</tr>
<tr style="background:white; color:black; height:24px">
<td style="background:black; width:2px"></td>
<td><b>7</b><sub>hex</sub></td>
<td>=</td>
<td>7<sub>dec</sub></td>
<td>=</td>
<td>7<sub>oct</sub></td>
<td style="background:black; width:2px"></td>
<td style="background:white;width:24px">0</td>
<td style="background:red;width:24px">1</td>
<td style="background:red;width:24px">1</td>
<td style="background:red;width:24px">1</td>
<td style="background:black; width:2px"></td>
</tr>
<tr style="background:black; height:2px">
<td style="background:black; width:2px"></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr style="background:white; color:black; height:24px">
<td style="background:black; width:2px"></td>
<td><b>8</b><sub>hex</sub></td>
<td>=</td>
<td>8<sub>dec</sub></td>
<td>=</td>
<td>10<sub>oct</sub></td>
<td style="background:black; width:2px"></td>
<td style="background:red;width:24px">1</td>
<td style="background:white;width:24px">0</td>
<td style="background:white;width:24px">0</td>
<td style="background:white;width:24px">0</td>
<td style="background:black; width:2px"></td>
</tr>
<tr style="background:#e1ffe1; color:black; height:24px">
<td style="background:black; width:2px"></td>
<td><b>9</b><sub>hex</sub></td>
<td>=</td>
<td>9<sub>dec</sub></td>
<td>=</td>
<td>11<sub>oct</sub></td>
<td style="background:black; width:2px"></td>
<td style="background:red;width:24px">1</td>
<td style="background:white;width:24px">0</td>
<td style="background:white;width:24px">0</td>
<td style="background:red;width:24px">1</td>
<td style="background:black; width:2px"></td>
</tr>
<tr style="background:#e1e1ff; color:black; height:24px">
<td style="background:black; width:2px"></td>
<td><b>A</b><sub>hex</sub></td>
<td>=</td>
<td>10<sub>dec</sub></td>
<td>=</td>
<td>12<sub>oct</sub></td>
<td style="background:black; width:2px"></td>
<td style="background:red;width:24px">1</td>
<td style="background:white;width:24px">0</td>
<td style="background:red;width:24px">1</td>
<td style="background:white;width:24px">0</td>
<td style="background:black; width:2px"></td>
</tr>
<tr style="background:white; color:black; height:24px">
<td style="background:black; width:2px"></td>
<td><b>B</b><sub>hex</sub></td>
<td>=</td>
<td>11<sub>dec</sub></td>
<td>=</td>
<td>13<sub>oct</sub></td>
<td style="background:black; width:2px"></td>
<td style="background:red;width:24px">1</td>
<td style="background:white;width:24px">0</td>
<td style="background:red;width:24px">1</td>
<td style="background:red;width:24px">1</td>
<td style="background:black; width:2px"></td>
</tr>
<tr style="background:black; height:2px">
<td style="background:black; width:2px"></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr style="background:#e1e1ff; color:black; height:24px">
<td style="background:black; width:2px"></td>
<td><b>C</b><sub>hex</sub></td>
<td>=</td>
<td>12<sub>dec</sub></td>
<td>=</td>
<td>14<sub>oct</sub></td>
<td style="background:black; width:2px"></td>
<td style="background:red;width:24px">1</td>
<td style="background:red;width:24px">1</td>
<td style="background:white;width:24px">0</td>
<td style="background:white;width:24px">0</td>
<td style="background:black; width:2px"></td>
</tr>
<tr style="background:white; color:black; height:24px">
<td style="background:black; width:2px"></td>
<td><b>D</b><sub>hex</sub></td>
<td>=</td>
<td>13<sub>dec</sub></td>
<td>=</td>
<td>15<sub>oct</sub></td>
<td style="background:black; width:2px"></td>
<td style="background:red;width:24px">1</td>
<td style="background:red;width:24px">1</td>
<td style="background:white;width:24px">0</td>
<td style="background:red;width:24px">1</td>
<td style="background:black; width:2px"></td>
</tr>
<tr style="background:white; color:black; height:24px">
<td style="background:black; width:2px"></td>
<td><b>E</b><sub>hex</sub></td>
<td>=</td>
<td>14<sub>dec</sub></td>
<td>=</td>
<td>16<sub>oct</sub></td>
<td style="background:black; width:2px"></td>
<td style="background:red;width:24px">1</td>
<td style="background:red;width:24px">1</td>
<td style="background:red;width:24px">1</td>
<td style="background:white;width:24px">0</td>
<td style="background:black; width:2px"></td>
</tr>
<tr style="background:#c0c0ff; color:black; height:24px">
<td style="background:black; width:2px"></td>
<td><b>F</b><sub>hex</sub></td>
<td>=</td>
<td>15<sub>dec</sub></td>
<td>=</td>
<td>17<sub>oct</sub></td>
<td style="background:black; width:2px"></td>
<td style="background:red;width:24px">1</td>
<td style="background:red;width:24px">1</td>
<td style="background:red;width:24px">1</td>
<td style="background:red;width:24px">1</td>
<td style="background:black; width:2px"></td>
</tr>
<tr style="background:black; height:2px">
<td style="background:black; width:2px"></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
За да не се обърква представянето на символите в различните бройни системи се използват няколко установени практики. Една от тях е като при изписването на знаците се слага долен индекс който показва основата на бройната система. Например 119<sub>10</sub> в десетична и е равно на 77<sub>16</sub> в шестнайсетична. Други предпочитат индекса да е текстов 119<sub>decimal</sub> или 119<sub>d</sub> - десетична, 77<sub>hex</sub> или 77<sub>h</sub>– шестнайсетична.
При разработката на софтуер са разработи различни методи за представянето на шестнайсетичните символи: