octal to hexadecimal Converter

0

What is a number system?

A number system of base B or radix R is a system in which numbers are represented with R or B symbols. for example, Binary number system is a base-2 system that means in this system all the numbers are represented with 0 and 1.

Similarly, Octal-8, Decimal-10, Hexadecimal-16 are some of the common number systems. The loop begins after base digits. for example, if we talk about the decimal Number system. lets write 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 now all our symbols ended then how to write 10th digit. By repeating the existing one. like10, 11, 12, ....... so on.

Lets apply the same logic with the binary number system. we have two symbols 0 and 1 so for the single binary digit the possible value is 0 and 1.
After that for two binary digits we have 00, 01, 10 and 11 since 00 is 0 and 01 is 1
For three binary digits we have 100, 101, 110, 111 so on.

Why Number conversion is important?

For our daily usage we are relied on Decimal Number System. Physical units such as length-meters, weight-kilograms, temperature-centigrade all are written in the Decimal Number System. But we lives are heavily relied on the digital gadgets and all the electronic gadgets runs on binary number of system.
Inorder to compute our data we need to convert it to the digital form ie,Binary Form
And for some other use like giving codes to the colors we use Hexa-decimal number system because it is easy to remember and write.

Convert 2341 octal to hexadecimal

Answer : (2341) 8= (4E1)16

How 2341 is converted from octal to hexadecimal?

Direct conversion of octal to hexadecimal is not possible so first we need to convert octal Number to Binary Number

octalbinary
0000
1001
2010
3011
4100
5101
6110
7111

Now Look at the table above and write respective  binary number in 3 bit for each octal number.
(2341)8 = (010 011 100 001) 2
After rearranging all binary number and splititting them in 4bits.
We get
(2341)8 = (0100 1110 0001) 2

Look at the corresponding value for each 4bits in the table below.

binaryhexadecimal
00000
00011
00102
00113
01004
01015
01106
01117
10008
10019
1010A
1011B
1100C
1101D
1110E
1111F

Answer : (0100 1110 0001) 2= (4E1)16

Convert 52142 octal to hexadecimal

Answer : (52142) 8= (5462)16

How 52142 is converted from octal to hexadecimal?

Direct conversion of octal to hexadecimal is not possible so first we need to convert octal Number to Binary Number

octalbinary
0000
1001
2010
3011
4100
5101
6110
7111

Now Look at the table above and write respective  binary number in 3 bit for each octal number.
(52142)8 = (101 010 001 100 010) 2
After rearranging all binary number and splititting them in 4bits.
We get
(52142)8 = (0101 0100 0110 0010) 2

Look at the corresponding value for each 4bits in the table below.

binaryhexadecimal
00000
00011
00102
00113
01004
01015
01106
01117
10008
10019
1010A
1011B
1100C
1101D
1110E
1111F

Answer : (0101 0100 0110 0010) 2= (5462)16