Computer Science Coversion Sheet
Computer Science Coversion Sheet
Binary
0000
0001
0010
0011
0100
0101
0110
0111
1000
1001
1010
1011
1100
1101
1110
1111
Hexadecimal
0
1
2
3
4
5
6
7
8
9
A
B
C
D
E
F
Decimal
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Binary to Hexadecimal
i. 00000110
= 06
ii. 00001110
= 014
iii. 00011000
= 18
iv. 10111000
= B8
v. 11100111
= E7
Hexadecimal to Decimal
i. 56H
5x 16= 80
6 x 1= 6
80 + 6 = 86
56hex = 86 decimal
ii. 2AH
2x16= 32
10x1=10
10 + 32= 42
2A = 42 decimal
1
iii. 4FH
4x16= 64
15 x 1 = 15
64 + 15 = 79 decimal
iv. FAH
15 x 16= 240
10 x 1= 10
10 + 240=250
FA= 250 decimal.
Decimal to Hexadecimal
i. 8=8 h
ii. 82= 52 h
iii. 60= 3c h
iv. 91= 5b h
v. 237 = ed h