07.number System
07.number System
Objectives
• We are used to using the base-10 number system, which is also called decimal.
• Other common number systems include base-16 (hexadecimal), base-8 (octal), and base-2 (binary).
Decimal number system
• Decimal number system, also called Hindu-Arabic, or Arabic,
number system, in mathematics, positional numeral
system employing 10 as the base and requiring 10 different
numerals, the digits 0, 1, 2, 3, 4, 5, 6, 7, 8, 9.
• 100 = 10 x 10 OR 102
• 1000= 10 x 10 x 10 OR 103
1 1 1 0 0 0 1 1
= 227
128 + 64 + 32 + 0 + 0 + 0 + 2 + 1
1 1 1 1 1 1 0 0 = 252
1 1 1 0 1 1 1 1 = 239
• Binary 1 means the bit is ON and it has to be calculated
• Binary 0 means the bit is off and does not need to be calculated
Decimal to Binary
2 200 0 128 64 32 16 8 4 2 1
2 100 0
2 50. 0 1 1 0 0 1 0 0 0 = 200
2 25. 1
2 12 0
2 6 .0
.
2 3. 1
1 1 3 7 15 31 62 125 250
1 1 1 1 1 0 1 0
Binary to hexadecimal
27 26 25 24 23 22 21 20
1 1 1 1 1 1 1 1
8 4 2 1 8 4 2 1
1 1 0 0 1 0 0 0 = C8
C8
1 1 1 1 1 1 0 0 = FC
1 1 1 0 1 1 1 1 = EF
Binary to Octal
21 20 22 21 20 22 21 20
1 1 1 1 1 1 1 1
2 1 4 2 1 4 2 1
1 1 0 0 1 0 0 0 = C8
310
1 1 1 1 1 1 0 0 = 374
1 1 1 0 1 1 1 1 = 357
Summary
• Different numbering systems
• Counting according to number systems
• IPv4 & IPv6 number systems
• Number conversion