Chapter 1
Chapter 1
Example:-
Octal Number : 125708
Example:-
Hexadecimal Number : 19FDE16
By adding together ALL the decimal number values from right to left at the positions that are
represented by a “1” gives us: (256) + (64) + (32) + (4) + (1) = 35710 or three hundred
and fifty seven as a decimal number.Then, we can convert binary to decimal by finding the
decimal equivalent of the binary array of digits 1011001012 and expanding the binary digits
into a series with a base of 2 giving an equivalent of 35710 in decimal .
Another example :- Convert the decimal number 67510 into its binary number equivalent.
Another method to represent a decimal number into a binary form Each decimal
digit is converted into a four bit binary.
( 325 )10 =( 0011 0010 0101 )
3 2 5
BCD ADDITION
1. add bcd.
2. if sum is invalid bcd or if carry is generated in the addition , add ( 0110 ) equivalent
to ( 6 ) to the sum.
1 1
329 - 0011 0010 100
1
+1 8 2 - 0001 1000 0010
511 0101 1 0 1 1- invalid bcd 1 0 1 1 -
invalid bcd
+ 0110
+0 1 1 0
0101 0001
0001
5 1
1
1's complement
The 1's complement of a number is found by changing all 1's to 0's and all 0's to 1's. This is
called as taking complement or 1's complement. Example of 1's Complement is as follows.
2's complement
The 2's complement of binary number is obtained by adding 1 to the Least Significant Bit (LSB)
of 1's complement of the number.
2's complement = 1's complement + 1
Example of 2's Complement is as follows.