Number System
Number System
Base or Radix: Determines the total number of digits used in the system.
Different number systems use different bases (or radices). 1
Number system
Importance of Number system in Digital Electronics
Data Representation: Numbers represent data in digital systems, from simple values to
complex instructions.
Arithmetic Operations: Digital circuits perform arithmetic operations on numbers,
requiring knowledge of number systems.
Data Conversion: Converting between different number systems is essential for efficient
data handling.
Memory Addressing: Memory locations are often represented using binary or
hexadecimal numbers.
Programming and Software Development: Programmers and developers use number
systems like hexadecimal for memory addressing, color codes, and other low-level tasks.
In essence, Number systems provide the foundation for digital electronics, enabling the
representation, manipulation, and storage of information within digital circuits. 2
Number system
1. Binary Number System (Base or Radix =2): Digits Used: 0, 1
• Example: 1011₂
• Usage: The primary number system used in digital electronics because digital circuits operate with two
states (high and low, or 1 and 0). Binary is the foundation for data representation in computers and
digital systems.
2. Decimal Number System (Base or Radix =10): Digits Used: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
• Example: 123₁₀
• Usage: The most familiar number system to humans, used in everyday life and common numerical
representations.
3. Octal Number System (Base or Radix =8): Digits Used: 0, 1, 2, 3, 4, 5, 6, 7
• Example: 57₈
• Usage: Sometimes used in digital systems as a more compact representation of binary numbers,
especially in older computer systems.
4. Hexadecimal Number System (Base or Radix =16): Digits Used: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E,
F (where A=10, B=11, ..., F=15)
• Example: 2A3₁₆
• Usage: Widely used in digital electronics and computing as a compact and human-readable
representation of binary numbers. It simplifies reading and writing long binary numbers and is 3often
used in programming, debugging, and representing memory addresses.
Number system
4
5
Number system Conversion
1. Binary to Decimal Conversion
Q1. Convert the binary number (1101)2 into a decimal number.
Solution: Given binary number = (1101)2
Now, multiplying each digit from LSB to MSB with increasing the power of the base
number 2.
(1 × 20 ) + (0 × 21 ) + (1 × 22 ) + ( 1 × 23 ) = 8 + 4 + 0 + 1 = 13
Thus, the equivalent decimal number for the given binary number (1101)2 is (13)10.
7
Number system Conversion
3. Binary to Octal Conversion
Q1. Convert binary number 1010111100 into Q2. Convert binary number 0110 011.1011 into octal number?
octal number? Solution:
Solution:
8
Number system Conversion
9
10
11
9. Hexadecimal to Binary and Binary to Hexadecimal Conversion
12
Number system Conversion
10. Octal to Hexadecimal Conversion
Q. Convert the octal number 1076 to the hexadecimal number system?
Solution:
13
Number system
n-bit binary system range formula
14
Number system
Rules of binary addition of two single bit binary number
Binary Addition Output
Number Value Rule
Sum =0,
0+0 0 There is no carry since the result is less than 2.
Carry = 0
Sum =1, There is no carry because the total is still less than
0 +1 1
Carry = 0 2.
Sum =1,
1 +0 1 There is no carry since the total is less than 2.
Carry = 0
When adding 1 and 1, the sum is 2. In binary, 2 is
1+1 0 Sum = 0, represented as 10. Therefore, the sum is 0, and a
Carry = 1 carry of 1 is produced to the next higher bit.
15
Number system
Rules of binary subtraction of two single bit binary number
16
Number system
Representation of Negative Binary Numbers
• So far we were talking about positive numbers, what about negative numbers.
• To represent negative numbers. There are three ways to represent negative numbers in computer
systems.
• They are: 1.Sign-Magnitude method,
Sign bit (or)
2. 1’s Complement method, Sign flag
19
Number system
2’s Complement Method :
20
Number system
What is the range of n-bits in each system
21
22