KONVERSI BILANGAN
A. Dari biner ke decimal
1. 10 = 2 → (1 x 2^1) + (0 x 2^0) = 2 + 0 = 2
2. 1011 = 11→ (1 x 2^3) + (0 x 2^2) + (1 x 2^1) + (1 x 2^0) = 8 + 0 + 2 + 1 = 11
3. 100001 = 33 → (1 x 2^5) + (0 x 2^4) + (0 x 2^3) + (0 x 2^2) + (0 x 2^1) + (1 x 2^0) = 32 + 1 = 33
B. Dari decimal ke biner
1. 625 = 1001110001
625 : 2 = 312 sisa 1
312 : 2 = 156 sisa 0
156 : 2 = 78 sisa 0
78 : 2 = 39 sisa 0
39 : 2 = 19 sisa 1
19 :2 = 9 sisa 1
9 : 2 = 4 sisa 1
4 : 2 = 2 sisa 0
2 :2 = 1 sisa 0
1 : 2 = 0 sisa 1
2. 1024 = 10000000000
1024 : 2 = 512 sisa 0
512 : 2 = 256 sisa 0
256 :2 = 128 sisa 0
128 : 2 = 64 sisa 0
64 : 2 = 32 sisa 0
32 : 2 = 16 sisa 0
16 : 2 = 8 sisa 0
8 : 2 = 4 sisa 0
4: 2 =2 sisa 0
2 :2 = 1 sisa 0
1 : 2 = 0 sisa 1
3. 9 = 1001
9 : 2 = 4 sisa 1
4 : 2 = 2 sisa 0
2 : 2 = 1 sisa 0
1 : 2 = 0 sisa 1
C. Dari decimal ke oktaf
1. 529 = 1021
529 : 8 = 66 sisa 1
66 : 8 = 8 sisa 2
8 : 8 = 1 sisa 0
1 : 8 = 0 sisa 1
2. 110 = 156
110 : 8 = 13 sisa 6
13 : 8 = 1 sisa 5
1 : 8 = 0 sisa 1
3. 75 = 113
75 : 8 = 9 sisa 3
9 : 8 = 1 sisa 1
1 : 8 = 0 sisa 1
D. Dari oktaf ke decimal
1. 1021 = 529 → (1 x 8^3) + (0 x 8^2) + (2 x 8^1) + (1 x 8^0) = 512 +16 + 1= 529
2. 325 = 213 → (3 x 8^2) + (2 x 8^1) + (5 x 8^0) = 192 + 16 + 5 = 213
3. 64 = 52 → (6 x 8^1) + (4 x 8^0) = 48 + 4 = 52
E. Dari decimal ke hexa
1. 5052 = 13BC
5052 : 16 = 315 sisa C
315 : 16 = 19 sisa B
19 : 16 = 1 sisa 3
1 : 16 = 0 sisa 1
2. 515 = 203
515 : 16 = 32 sisa 3
32 : 16 = 2 sisa 0
2 : 16 = 0 sisa 2
3. 128 = 80
128 : 16 = 8 sisa 0
8 : 16 = 0 sisa 8
F. Dari hexa ke decimal
1. 13BC = 5052 → (1 x 〖16〗^3) + (3 x 〖16〗^2) + (11 x 〖16〗^1) + (12 x 〖16〗^0) = 4096 + 768 + 176 + 12 = 5052
2. BAB1 = 47793 → (11 x 〖16〗^3) + (10 x 〖16〗^2) + (11 x 〖16〗^1) + (1 x 〖16〗^0) = 45056 +2560 + 176 + 1 =
3. C1CA = 49610 → (12 x 〖16〗^3) + (1 x 〖16〗^2) + (12 x 〖16〗^1) + (10 x 〖16〗^0) = 49152 + 256 + 192 + 10 =
Tidak ada komentar:
Posting Komentar