The Binary Number System and
Conversions
© 2014 Project Lead The Way, Inc. Digital Electronics
Bridging the Digital Divide
0010
0
0101011
1010 101
0
100101101
011011 1101 010 00101101
0010
0
0101011
011011 1101 001011010010
0
1001
0
100101101
1101 010 00101101
01
01
01
1
011011 1101 00101 10010 10010 Binary-to-Decimal Conversion Decimal-to-Binary ConversionDecimal ‒to‒ Binary Conversion
The Process : Successive Division
a) Divide the Decimal Number by 2; the remainder is the LSB of
Binary Number .
b) If the quotient is zero, the conversion is complete; else repeat step (a) using the quotient as the Decimal Number. The new remainder is the next most significant bit of the Binary Number.
Example:
Convert the decimal number 610 into its binary equivalent.
610 = 1102
3 Bit t Significan Most 1 r 0 1 2 1 r 1 3 2 Bit t Significan Least 0 r 3 6 2
Dec → Binary : Example #1
Example:Dec → Binary : Example #1
Example:Convert the decimal number 2610 into its binary equivalent.
Solution:
2610 = 110102
5 LSB 0 r 13 26
2
MSB 1 r 0 1
2
1 r 6 13 2 0 r 3 6 2 1 r 1 3 2
Dec → Binary : Example #2
Example:Dec → Binary : Example #2
Example:Convert the decimal number 4110 into its binary equivalent.
Solution:
4110 = 1010012
7 LSB 1 r 20 41
2
0 r 10 20 2 0 r 5 10 2 1 r 2 5 2 MSB 1 r 0 1
2
0 r 1 2 2
Dec → Binary : More Examples
a) 13
10= ?
b) 22
10= ?
c) 43
10= ?
Dec → Binary : More Examples
a) 13
10= ?
b) 22
10= ?
c) 43
10= ?
d) 158
10= ?
1 1 0 1
21 0 1 1 0
21 0 1 0 1 1
21 0 0 1 1 1 1 0
2Binary ‒to‒ Decimal Process
The Process : Weighted Multiplication
a) Multiply each bit of the Binary Number by it corresponding bit-weighting factor (i.e. Bit-0→20=1; Bit-1→21=2; Bit-2→22=4; etc).
b) Sum up all the products in step (a) to get the Decimal Number. Example:
Convert the decimal number 01102 into its decimal equivalent.
0110 2 = 6 10
0
1
1
0
23 22 21 20
8 4 2 1
0 + 4 + 2 + 0 =
6
Bit-Weighting Factors
Binary → Dec : Example #1
Example:Convert the binary number 100102 into its decimal equivalent.
Binary → Dec : Example #1
Example:Convert the binary number 100102 into its decimal equivalent.
1
0
0
1
0
24 23 22 21 20
16 8 4 2 1
16 + 0 + 0 + 2 + 0 =
18
10Binary → Dec : Example #2
Example:Convert the binary number 01101012 into its decimal equivalent.
Binary → Dec : Example #2
Example:Convert the binary number 01101012 into its decimal equivalent.
0
1
1
0
1
0
1
26 25 24 23 22 21 20
64 32 16 8 4 2 1
0 + 32 + 16 + 0 + 4 + 0 + 1 =
53
10Binary → Dec : More Examples
a) 0110
2= ?
b) 11010
2= ?
c) 0110101
2= ?
d) 11010011
2= ?
Binary → Dec : More Examples
a) 0110
2= ?
b) 11010
2= ?
c) 0110101
2= ?
d) 11010011
= ?
6
1026
1053
10Summary & Review
Base
10
DECIMAL
Base
2
BINARY
SuccessiveDivision
a) Divide the Decimal Number by 2; the remainder is the LSB of Binary Number .
b) If the Quotient Zero, the conversion is complete; else repeat step (a) using the Quotient as the Decimal Number. The new remainder is the next most significant bit of the Binary Number.
a) Multiply each bit of the Binary Number by it corresponding bit-weighting factor (i.e. Bit-0→20=1; Bit-1→21=2; Bit-2→22=4; etc).
b) Sum up all the products in step (a) to get the Decimal Number. Weighted
Multiplication
Base
10
DECIMAL
Base
2
BINARY
Image Resources
• Microsoft, Inc. (2008). Clip Art. Retrieved March 15, 2008 from