Number System Conversion
Here we only focus on the conversion of decimal,
binary and hexadecimal.
Figure below show the Decimal/Hexadecimal/Binary
Conversion
Decimal to binary
Convert 15610
to binary
2|156 0
2|78 0
2|39 1
2|19 1
2|9 1
2|4 0
2|2 0
2|1 1
And
we read the answer from the bottom to top, therefore 15610 in binary
is 100111002.
Decimal to hexadecimal
Convert 143210
to hexadecimal
Weight
|
163
|
162
|
161
|
160
|
Value represented
|
4096
|
256
|
16
|
1
|
Hexadecimal
|
5
|
9
|
8
|
1432 – (256x5) = 152
152 – (16x9) = 8
8 – (1x8) = 0
Therefore 143210
= 59816
Binary to hexadecimal
Convert 11110000.00112
to hexadecimal
1111
|
0000
|
.
|
0011
|
8421
|
8421
|
.
|
8421
|
1(8) +1(4) +1(2) +1(1) = 15(F)
|
0(8) +0(4) +0(2) +0(1) = 0
|
.
|
0(8) +0(4) +1(2) +1(1) = 3
|
11110000.00112
= F0.316
Hexadecimal to binary
E18616 = ?
E
|
1
|
8
|
6
|
1110
|
0001
|
1000
|
0110
|
Therefore E18616
= 11100001100001102
Binary to hexadecimal
110102 = ?
Binary
|
1
|
1
|
0
|
1
|
0
|
Weight
|
24
|
23
|
22
|
21
|
20
|
Value
|
16
|
8
|
4
|
2
|
1
|
110102 = 1(16) + 1(8) + 0(4) + 1(2) + 0(1)
= 26
by: Muhammad Nasruddin Rosli
No comments:
Post a Comment