








Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!









Characteristics
Uses two digits, 0 and 1.
Also called base 2 number system
Each position in a binary number represents a 0 power of the base (2).
Last position in a binary number represents an x power of the base (2).
Example
Binary Number: 10101
Calculating Decimal Equivalent ā
Characteristics
Uses eight digits, 0,1,2,3,4,5,6,7.
Also called base 8 number system
Each position in an octal number represents a 0 power of the base (8).
Last position in an octal number represents an x power of the base (8).
Octal Number ā 12570
Calculating Decimal Equivalent ā
Characteristics
Uses 10 digits and 6 letters, 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F.
Letters represents numbers starting from 10. A = 10, B = 11, C = 12, D = 13, E = 14, F = 15.
Also called base 16 number system.
Each position in a hexadecimal number represents a 0 power of the base (16).
Last position in a hexadecimal number represents an x power of the base (16). Example 16x where x represents the last position - 1.
Hexadecimal Number: 19FDE
Calculating Decimal Equivalent ā
As mentioned in Steps 2 and 4, the remainders have to be arranged in the reverse order so that the first remainder becomes the Least Significant Digit (LSD) and the last remainder becomes the Most Significant Digit (MSD).
Decimal Number ā 29= Binary Number ā 11101
Steps
Binary Number ā 11101
Calculating Decimal Equivalent ā
Binary Number ā 11101= Decimal Number ā 29
Steps
Octal Number ā 25
Calculating Binary Equivalent ā
Octal Number ā 25= Decimal Number ā 21
Decimal Number ā 21= Binary Nuber ā 10101
Octal Number ā 25= Binary Number ā 10101
Steps
Binary Number ā 10101
Calculating Octal Equivalent ā
Binary Number ā 10101= Octal Number ā 25
Steps
Hexadecimal Number ā 15
Calculating Binary Equivalent ā
Hexadecimal Number ā 15 = Binary Number ā 10101
In the coding, when numbers, letters or words are represented by a specific group of symbols, it is said that the number, letter or word is being encoded. The group of symbols is called as a code. The digital data is represented, stored and transmitted as group of binary bits. This group is also called as binary code. The binary code is represented by the number as well as alphanumeric letter.
Following is the list of advantages that binary code offers.
The codes are broadly categorized into following four categories.
Weighted binary codes are those binary codes which obey the positional weight principle. Each position of the number represents a specific weight. Several systems of the codes are used to express the decimal digits 0 through 9. In these codes each decimal digit is represented by a group of four bits.
In this type of binary codes, the positional weights are not assigned. The examples of non-weighted codes are Excess-3 code and Gray code.
The Excess-3 code is also called as XS-3 code. It is non-weighted code used to express decimal numbers. The Excess-3 code words are derived from the 8421 BCD code words adding (0011)2 or (3)10 to each code word in 8421. The excess-3 codes are obtained as follows ā
It is the non-weighted code and it is not arithmetic codes. That means there are no specific weights assigned to the bit position. It has a very special feature that, only one bit will change each time the decimal number is incremented as shown in fig. As only one bit changes at a time, the gray code is called as a unit distance code. The gray code is a cyclic code. Gray code cannot be used for arithmetic operation.
In this code each decimal digit is represented by a 4-bit binary number. BCD is a way to express each of the decimal digits with a binary code. In the BCD, with four bits we can represent sixteen numbers (0000 to 1111). But in BCD code only first ten of these are used (0000 to 1001). The remaining six code combinations i.e. 1010 to 1111 are invalid in BCD.
Steps
Example ā convert (11101)2 to BCD.
Binary Number ā 111012
Calculating Decimal Equivalent ā
Binary Number ā 111012 = Decimal Number ā 2910
Decimal Number ā 2910
Calculating BCD Equivalent. Convert each digit into groups of four binary digits equivalent.
Result
(11101)2 = (00101001)BCD
Steps
Example ā convert (00101001)BCD to Binary.
BCD Number ā (00101001)BCD
Calculating Decimal Equivalent. Convert each four digit into a group and get decimal equivalent for each group.
BCD Number ā (00101001)BCD = Decimal Number ā 2910
Used long division method for decimal to binary conversion.
Decimal Number ā 2910
Calculating Binary Equivalent ā
As mentioned in Steps 2 and 4, the remainders have to be arranged in the reverse order so that the first remainder becomes the least significant digit (LSD) and the last remainder becomes the most significant digit (MSD).
Decimal Number ā 2910 = Binary Number ā 111012
Result
(00101001)BCD = (11101)
Steps
Example ā convert (1001)BCD to Excess-3.