Number System
Important Number System for computer are :-
- Decimal Number System (0-9)
- Binary Number System (0-1)
- Hexadecimal Number System (0-9, A-F)
- Octal Number System (0-7)
In decimal, each digit's position represents a power of 10 (e.g., in 123, 3 is , 2 is , 1 is ).
In binary, each digit's position represents a power of 2.
The Step-by-Step Process
Write down the Binary Number: Start by writing the binary number you want to convert.
Assign Place Values (Powers of 2): Starting from the rightmost digit of the binary number and moving to the left, assign increasing powers of 2 to each position.
The rightmost digit gets 2^0 (which is 1).
The next digit to the left gets 2^1 (which is 2).
The next gets 2^2 (which is 4), and so on.
Multiply and Sum:
For each digit in the binary number:
If the binary digit is '1', multiply it by its corresponding power of 2.
If the binary digit is '0', the result for that position is 0 (as ).
Add up all the results from the multiplications. This sum is your decimal equivalent.
Example
Let's convert the binary number 11010 to decimal.
Binary Number: 11010
Assign Place Values (from right to left):
Rightmost '0' is at position 2^0
Next '1' is at position 2^1
Next '0' is at position 2^2
Next '1' is at position 2^3
Leftmost '1' is at position 2^4
Multiply and Sum:
Comments
Post a Comment