Menene hexadecimal?
Tsarin lamba hexadecimal, sau da yawa an rage shi zuwa "hex", tsarin lamba ne da aka yi shi da alamomi 16 (tushe 16). Madaidaicin tsarin lambobi ana kiransa decimal (tushe 10) kuma yana amfani da alamomi goma: 0,1,2,3,4,5,6,7,8,9. Hexadecimal yana amfani da lambobi goma sha ɗaya da ƙarin alamomi shida. Babu alamomin lamba waɗanda ke wakiltar ƙima sama da tara, don haka ana amfani da haruffan da aka ɗauko daga haruffan Ingilishi, musamman A, B, C, D, E da F. Hexadecimal A = decimal 10, da hexadecimal F = decimal 15.
Menene Binary?
Tsarin lamba na binary yana amfani da lamba 2 azaman tushe (radix). A matsayin tsarin lamba-2, ya ƙunshi lambobi biyu kawai: 0 da 1.
Hex zuwa tebur na juyawa
Hex | Binary |
---|---|
0 | 0 |
1 | 1 |
2 | 10 |
3 | 11 |
4 | 100 |
5 | 101 |
6 | 110 |
7 | 111 |
8 | 1000 |
9 | 1001 |
A | 1010 |
B | 1011 |
C | 1100 |
D | 1101 |
E | 1110 |
F | 1111 |
10 | 10000 |
20 | 100000 |
40 | 1000000 |
80 | 10000000 |
100 | 100000000 |