Base System (Binary, Decimal, Octal & Hexadecimal)
Base System (Binary, Decimal, Octal & Hexadecimal)
Note:-
1. Binary to Octal:
An easy way to convert binary to octal is to group binary digits into sets of three, starting with the least significant (rightmost) digits.
Binary: 11100101 = 11 100 101
011 100 101 Pad the most significant digits with zeros if necessary to complete a group of three.
Binary = 011 100 101
Octal = 3 4 5 (345)8
2. Binary to Hexadecimal:
An easy way to convert binary to hexadecimal is to group binary digits into sets of four, starting with the least significant (rightmost)
digits.
Binary: 11100101 = 1110 0101
Hexadecimal = E 5 = (E5)16
3. Octal to Hexadecimal:
When converting from octal to hexadecimal, it is often easier to first convert the octal number into binary and then from binary into
hexadecimal.
For example, to convert 345 octal into hex:
(from the previous example)
Octal = 3 4 5
Binary = 011 100 101 = (011100101)2
Drop any leading zeros or pad with leading zeros to get groups of four binary digits (bits):
Binary 011100101 = 1110 0111
Hexadecimal = E 5 = (E5)16
Therefore, through a two-step conversion process, octal 345 equals binary
011100101 = (E5)16
FIITJEE Kathauta Chauraha Vinamra Khand, Gomti Nagar. Lucknow - 226010. 0522 - 2724960, 2724961. Web: www.fiitjee.com
Example:-1
(a) (23)10 = (10111)2 (b) (23)10 = (27)8
2 23 1 8 23 7
2 11 1 8 2
2 5 1
2 2 0
1
Example:- 2
(a) (0.625)10 = (0.5)8 0.625 × 8 = 5.000 0.5
FIITJEE Kathauta Chauraha Vinamra Khand, Gomti Nagar. Lucknow - 226010. 0522 - 2724960, 2724961. Web: www.fiitjee.com