Other Base To Other Base
In other base to other base number system, there are three types of conversion method which is as follows:
1. Octal To Binary & Binary To Octal
2. Hexadecimal to Binary & Binary To Octal
3. Octal To Hexadecimal & Hexadecimal to Octal
1. Octal To Binary & Binary To Octal
In the octal number system the each digit equivalent to 3 bits to binary number so octal to binary and binary to octal we used three bit number.
Octal To Binary:
The octal to binary is simple and understand below example.
Example:
Binary To Octal:
To convert binary to octal use the following rules:
First, make 3 bits pair of digits.
If a binary number is an integer, then it starts from right to left side.
If fractional than make 3 bit pair from left to right side.
Check the last pair of both integer and fractional if less than 3 bits then add a zero.
Example:
2. Hexadecimal To Binary & Binary To Hexadecimal
Hexadecimal To Binary Number:
To convert from hexadecimal to binary there is the same method like used in octal to binary but there is little change that each digit of hexadecimal represent in the binary equivalent of 4 bits. To understand how to convert hexadecimal to binary with the help of following below example.
Example:
Binary To Hexadecimal Number System:
To convert from binary to hexadecimal using following rules:
First, make 4 bits pair of digits.
If a binary number is an integer, then it starts from right to left side.
If fractional than make 3 bit pair from left to right side.
Check the last pair of both integer and fractional if less than 4 bits then add a zero.
Example:
Octal To Hexadecimal & Hexadecimal To Octal
Octal To Hexadecimal:
To convert from octal to hexadecimal first convert octal to binary, then make 4 bits pair of binary digit if fractional, then left to right and if integer, then right to the left side and check the last pair of binary digit for both integer and fractional if last pair incomplete than add zero make 4 bits than it convert into hexadecimal.
Example:
Hexadecimal To Octal:
To convert to hexadecimal first step we convert hexadecimal to binary than binary digits make 3 pair bits and convert it into octal.
Example:






No comments:
Post a Comment