hexadecimal ni nini?
Mfumo wa nambari za heksadesimali, mara nyingi hufupishwa kuwa "hex", ni mfumo wa nambari unaojumuisha alama 16 (msingi 16). Mfumo wa kawaida wa nambari huitwa decimal (msingi 10) na hutumia alama kumi: 0,1,2,3,4,5,6,7,8,9. Hexadecimal hutumia nambari za desimali na alama sita za ziada. Hakuna alama za nambari zinazowakilisha thamani kubwa kuliko tisa, kwa hivyo herufi zilizochukuliwa kutoka kwa alfabeti ya Kiingereza hutumiwa, haswa A, B, C, D, E na F. Hexadecimal A = desimali 10, na hexadecimal F = desimali 15.
Desimali ni nini?
Mfumo wa nambari za desimali ndio unaotumiwa zaidi na mfumo wa kawaida katika maisha ya kila siku. Inatumia nambari 10 kama msingi wake (radix). Kwa hiyo, ina alama 10: Nambari kutoka 0 hadi 9; yaani 0, 1, 2, 3, 4, 5, 6, 7, 8 na 9.
Jedwali la ubadilishaji la Hex hadi desimali
Hex msingi 16 | Msingi wa decimal 10 | Hesabu |
---|---|---|
0 | 0 | - |
1 | 1 | - |
2 | 2 | - |
3 | 3 | - |
4 | 4 | - |
5 | 5 | - |
6 | 6 | - |
7 | 7 | - |
8 | 8 | - |
9 | 9 | - |
A | 10 | - |
B | 11 | - |
C | 12 | - |
D | 13 | - |
E | 14 | - |
F | 15 | - |
10 | 16 | 1×16 1 +0×16 0 = 16 |
11 | 17 | 1×16 1 +1×16 0 = 17 |
12 | 18 | 1×16 1 +2×16 0 = 18 |
13 | 19 | 1×16 1 +3×16 0 = 19 |
14 | 20 | 1×16 1 +4×16 0 = 20 |
15 | 21 | 1×16 1 +5×16 0 = 21 |
16 | 22 | 1×16 1 +6×16 0 = 22 |
17 | 23 | 1×16 1 +7×16 0 = 23 |
18 | 24 | 1×16 1 +8×16 0 = 24 |
19 | 25 | 1×16 1 +9×16 0 = 25 |
1A | 26 | 1×16 1 +10×16 0 = 26 |
1B | 27 | 1×161+11×160 = 27 |
1C | 28 | 1×161+12×160 = 28 |
1D | 29 | 1×161+13×160 = 29 |
1E | 30 | 1×161+14×160 = 30 |
1F | 31 | 1×161+15×160 = 31 |
20 | 32 | 2×161+0×160 = 32 |
30 | 48 | 3×161+0×160 = 48 |
40 | 64 | 4×161+0×160 = 64 |
50 | 80 | 5×161+0×160 = 80 |
60 | 96 | 6×161+0×160 = 96 |
70 | 112 | 7×161+0×160 = 112 |
80 | 128 | 8×161+0×160 = 128 |
90 | 144 | 9×161+0×160 = 144 |
A0 | 160 | 10×161+0×160 = 160 |
B0 | 176 | 11×161+0×160 = 176 |
C0 | 192 | 12×161+0×160 = 192 |
D0 | 208 | 13×161+0×160 = 208 |
E0 | 224 | 14×161+0×160 = 224 |
F0 | 240 | 15×161+0×160 = 240 |
100 | 256 | 1×162+0×161+0×160 = 256 |
200 | 512 | 2×162+0×161+0×160 = 512 |
300 | 768 | 3×16 2 +0×16 1 +0×16 0 = 768 |
400 | 1024 | 4×16 2 +0×16 1 +0×16 0 = 1024 |