Converting Binary to Decimal
Convert binary to decimal using Positional Notation
Since number numbers are type of positional number system. That means weight of the positions from right to left are as 20, 21, 22, 23... and so on for the integer part and weight of the positions from left to right are as 2-1, 2-2, 2-3, 2-4... and so on for the fractional part.
I am taking a 3 decimal digit number 618
1001101010
29 x 1 + 28 x 0 + 27 x 0 + 26 x 1 + 25 x 1 + 24 x 0 + 23 x 1 + 22 x 0 + 21 x 1 + 20 x 0
= 512 + 64 + 32 + 8 + 2
= 618
===================================================================
Finding two's complement of a number
To get 2’s complement of binary number is 1’s complement of given number plus 1 to the least significant bit (LSB).
For example 2’s complement of binary number 10010 is (01101) + 1 = 01110.
Given number 88.
Convert it into binary
|_88_____
2|_44 - 0
2|_22 - 0
2|_11 - 0
2|_5 - 1
2|_2 - 1
2|_1 - 0
The binary is 1011000
First find 1's complement of binary number
1's complement is convert all 0 to 1 and 1 to 0.
Therefore 1's complement of 1011000 is 0100111
Then add 1 to the 1's complement
(0100111) + 1 = 0101000
Thank you. Please ask me if you have any doubt.
Get Answers For Free
Most questions answered within 1 hours.