Number System
Dr. Emad Natsheh
Number system
• Base 2 → (Binary) 0, 1
• Base 8 → (Octal) 0-7
• Base 10 → (Decimal) 0-9
• Base 16 → (Hexadecimal) 0-9 A-F
• Base 3 → 0-2
• Base 4 → 0-3
• Base 5 → 0-4
Convert from Base r to Base 10
(anan-1….a1a0.a-1a-2….a-m)r
Convert from Base r to Base 10 (Exercises)
• (101)2 → ( )10
• (11010)2 → ( )10
Convert from Base r to Base 10 (Exercises)
• (11010.11)2 → ( )10
• (4021.2)5 → ( )10
• (FA2B)16 → ( )10
Convert from Base 10 to Base r (Exercises)
• (41)10 → ( )2
Convert from Base 10 to Base r (Exercises)
• (29)10 → ( )3
• (345)10 → (101011001)2
Convert from Base 10 to Base r (Exercises)
• (1335.8125)10 → ( )8
Convert from Base 10 to Base r (Exercises)
• (0.6875)10 → ( )2
• (0.513)10 → ( )8
Weight Rule
Decimal to binary to 2n → 2n to binary to decimal
Base 2 to Base 10
• (101)2 → ( )10
• (11010)2 → ( )10
Base 10 to Base 2
• (6)10 → ( )2
• (14)10 → ( )2
• (21)10 → ( )2
Base 4 to Base 2
Base 4 Base 2
• Each digit in Base 4 is 2bit in Base 2 0
3
Base 4 to Base 2
• (12)4 → ( )2
• (2.3)4 → ( )2
• (101)4 → ( )2
Base 2 to Base 4
• (10)2 → ( )4
• (1011)2 → ( )4
• (101)2 → ( )4
Base 2 to Base 4
• (10.11)2 → ( )4
• (1.1)2 → ( )4
Base 8 to Base 2
Base 8 Base 2
• Each digit in Base 8 is 3bit in Base 2 0
7
Base 8 to Base 2
• (26)8 → ( )2
• (2.5)8 → ( )2
• (101)8 → ( )2
Base 2 to Base 8
• (101)2 → ( )8
• (101100)2 → ( )8
• (10110)2 → ( )8
Base 2 to Base 8
• (10.1)2 → ( )8
• (110.011)2 → ( )8
Base 16 to Base 2
• Each digit in Base 16 is 4bit in Base 2
Base 16 Base 2
E
Base 16 to Base 2
• (4A)16 → ( )2
• (101)16 → ( )2
• (A1.5)16 → ( )2
Base 2 to Base 16
• (1001)2 → ( )16
• (10010010)2 → ( )16
• (10110)8 → ( )16
Base 2 to Base 16
• (1010.0101)8 → ( )16
• (11.01)8 → ( )16
Exercises
• (65)8 → ( )10
• (11)16 → ( )8
• (25)10 → ( )16
• (213)4 →( )10