Computer Science Binary Conversions Guide
Computer Science Binary Conversions Guide
Cristóbal Pertuz
9A
Atlantic/Barranquilla
2021
COMPUTER SCIENCE GUIDE ACTIVITY #3
✓ 102112
✓ 100012+1112
b) Conversion from binary to decimal:
✓ 1011102
✓ 0000112
✓ 1010102
✓ 1110002
c) Conversion from decimal to binary:
✓ 6410=
✓ 14510=
✓ 50010=
✓ 2710 =
d) Convert the following octal numbers to their equivalent binary:
✓ 758=
✓ 1638=
✓ 2018
✓ 3768=
h) Convert the following binary numbers to their octal equivalents:
✓ 001=✓ 110=
✓ 111000=
✓ 101100=
i) Convert the following hexadecimal numbers to their binary equivalents:
✓ B16=
✓ 1C16=
✓ 1FC16=
✓ 239=
j) Convert the following binary numbers to their hexadecimal equivalents
equivalents:
✓ 1001=
✓ 110101=
✓ 10000=
✓ 10000000=
DEVELOPMENT OF THE ACTIVITY
A). Operations to solve:
1011012plus 10112
101101
0111
111000
R/= 111000
100012+1112
111
10001
111
11000
R/= 11000
✓ 1100001
0 × 20 = 0 × 0 = 0
1 × 2¹ = 1 × 2 = 2
1 × 2² = 1 × 4 = 4 (decimal 46)
1 × 2³ = 1 × 8 = 8 46
0 × 24 = 0 × 16 = 0
1 × 25 = 1 × 32 = 32
46
✓ 000011 squared
1 × 20 = 1 × 0 = 0 decimal 2
1 × 2¹ = 1 × 2 = 2
0 × 2² = 0 × 4 = 0
0 × 2³ = 0 × 8 = 0
0 × 24 = 0 × 16 = 0
0 × 25 = 0 × 32 = 0
2
✓101010²
0 × 20 = 0 × 0 = 0
2 (decimal 2)
0 × 2² = 0 × 4 = 0 42
1 × 2³ = 1 × 8 = 8
0 × 24 = 0 × 16 = 0
1 × 25 = 1 × 32 = 32
46
B) Conversion from binary to decimal
101110 squared
0 × 20 = 0 × 0 = 0
1 × 2¹ = 1 × 2 = 2
1 × 2² = 1 × 4 = 4 46
1 × 2³ = 1 × 8 = 8
0 × 24 = 0 × 16 = 0
1 × 25 = 1 × 32 = 32
46
000011 squared
1 × 20 = 1 × 0 = 0 (decimal 2)
1 × 2¹ = 1 × 2 = 2
0 × 2² = 0 × 4 = 0
0 × 2³ = 0 × 8 = 0
0 × 24 = 0 × 16 = 0
0 × 25 = 0 × 32 = 0
2
101010 squared
0 × 20 = 0 × 0 = 0
1 × 2¹ = 1 × 2 = 2 (decimal 42)
0 × 2² = 0 × 4 = 0
1 × 2³ = 1 × 8 = 8
0 × 24 = 0 × 16 = 0
1 × 25 = 1 × 32 = 32
42
111000
0 × 20 = 0 × 0 × 0
0 × 2¹ = 0 × 2 × 0 decimal 56
0 × 2² = 0 × 4 × 0
1 × 2³ = 1 × 8 × 8
1 × 24 = 1 × 16 × 16
1 × 25 = 1 × 32 × 32
56
145¹0
145|___2__
1 72 |___2__
0 36 |___2___
0 18 |___2___
0 9 |__2__
1 4 |__2__
0 2 |__2__
01
145^10 = 10010001^2
500¹0
500|__2__
0 250 |__2__
0 125 |__2__
1 62 |__2__
0 31 |__2__
1 15 |___2__
1 7 |__2__
1 3 |__2__
11
500 in decimal is equal to 111110100 in binary.
111¹0
111|_2__
1 55|__2___
1 27 |_2__
1 13 |__2__
1 6 |_2__
0 3 |__2__
11
111¹0 = 1101111²
27¹0
27 in binary is 11011.
1 13 |__2__
1 6 |_2__
0 3 |__2__
11
27 base 10 = 11011 base 2
1638
1=001
6=110
3=011
(001110011) squared
2018
2 = 010
0= 000
1=001
(010000001)²
3768
3 = 011
7 = 111
6=110
(011111110)²
110 squared
(6)8
111000 squared
111=7
000=0
-70 in base 8
45
5
100=4
=(54)8
B¹6
= (1011)²
1 Corinthians 16
=1=0001
=C=1100
(00011100)²
1FC¹6
=1=0001
=F=1111
=C=1100
(000111111100)²
239¹6
=2=0010
=3=0011
=9=1001
(001000111001)²
1101²
(D)^16
10000²
Since there are missing numbers, we add three zeros in front.
of 1....
=0001. 0000
= 0001= 1
=0000=0
(10)¹6
10,000,000,000
=1000=8
=0000=0
= (80)¹6