Skip to main content

Octal and Hexadecimal Number

Complement of a Number   Types of Number system   Convert Decimal to Binary

If you are new to this article, I strongly recommend to read our previous article before preceding this. In our previous article, we had already seen that binary number has a base of 2. It means that binary number contains 21 = 2 combinations which are 0 and 1. Similarly, Octal and Hexadecimal number has a fixed number of combinations. As we earlier know that octal has a base 8, then it contains 8 digits through 0 to 7 which means 23 =8 combinations and Hexadecimal has a base 16 which means it has 24=16 combinations.

                If you are focusing on a sequence i.e. octal, hexadecimal. They are the combinations of increasing power of 2.

Octal – 23 , Hexadecimal - 24

This power indicates how many bits are in a number for a particular number system

Octal has 3 bits

Hexadecimal has 4 bits

This can be clear understand by following diagram-

 

Explain – In this diagram, first we consider decimal number up to 7

You can clearly seen in this diagram that binary numbers has 0 at its first position, so you can write or remove this 0. Now if you remove this 0 than it has remaining only 3 binary bits which are [ 000, 001, 010, 011, 100, 101,110,111 ] these are the binary representation of octal Numbers [ 0, 1, 2, 3, 4, 5, 6, 7]

Now consider after 7 Number, binary number contains 1 at its first position, so we cannot remove this at its position, if we do not remove 1 at its position it contains 4 binary bits which are [ 0000, 0001, 0010, 0011, 0100, 0101, 0110, 0111, 1000, 1001, 1010, 1011, 1100, 1101, 1110, 1111] and these are the binary representation of Hexadecimal Number [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F]

Now we are ready to convert binary to octal, octal to binary, binary to hexadecimal, hexadecimal to binary. The following example illustrates the procedure :

( 10 110 001 101 011 . 111 100 000 110)= (26153.7406)8

   2    6     1     5     3   .   7     4    0      6

Conversion from binary to hexadecimal is similar, except that the binary number is divided into groups of four digits :

(10 1100 0110 1011 . 1111 0010)2 = (2C6B.F2)16

  2     C      6       B   .    F       2

Conversion from octal or hexadecimal to binary is done by a procedure reverse to the above.Each octal digit is converted to its 3-digit binary equivalent. Similarly, each hexadecimal digit is converted to its 4-digit binary equivalent. This is illustrated in the following examples:

(673.124)= (110 111 011 . 001 010 100)2

(306.D)16 = (0011 0000 0110 . 1101)2


  


Comments

Popular posts from this blog

WORLD  HERITAGE  SITES IN  INDIA PART- 1  Why did UNESCO start the World Heritage Centre? The UNESCO World Heritage Centre was born by merging two separate movements. The first was a movement for the preservation of cultural sites. The second was a movement that dealt with the conservation of nature. The ball for the first movement was set rolling with the decision to build the Aswan High Dam in Egypt. This dam would have flooded the valley in which one of the treasures of ancient Egypt- the Abu Simbel temple- wsa located. In 1959 UNESCO launched a campaign to safeguard these temples. It was a joint effort of 50 countries, and it led to many other similar projects to safeguard rare treasures. It was the United States that led the movement to combine the conservation of natural wonders along with cultural sites.  World Heritage Fund- If 1972, the World Heritage Fund was created. Its aim is to assist nations in identifying, preserving, and promoting World Heritage...

Square of the number

     This article is used to find out the square of  a number in a short period of time compare to normal maths. It increase the speed of your calculations.  The answer obtained by multiplying a number by itself is the square of that number. Example :- 6×6= 36 which is the square of 6.                          8×8= 64 which is the square of 8.      1.   Square of numbers ending in 5 :- Example 1-: 35 2 =   ? Step 1:- Multiply the first part by the first part plus 1: 3 ×(3+1) =3×4 =12 Step 2:- Write the number 25 next to the result from step 1: 35 2 = 12_25 = 1225 Example 2-: (in 3 digits) 125 2 =   ? Step 1:- Multiply the first part by the first part plus 1: 12 ×(12+1) =12×13 =156 Step 2:- Write the number 25 next to the result from step 1: 125 2 = 156_25 = 15625 Example 3-: (in decimal numbers) 9.5 2 =     ? Step 1:- M...

What is Genetics

What is Genetics?     Have you ever wondered why some people are short while others are tall, or why some have brown eyes while others have black eyes? Genetics is the study of the ways in which different characteristics are passed from each generations of living things to the next. Genetics has many divisions like population genetics and epigenetics   What is DNA?     Each of us has a unique set of chemical blueprints that determine how our body looks and functions. These blueprints are contained in our DNA, which is the short form of deoxyribonucleic acid.    DNA is in the form of long spiral-shaped molecules found inside every cell. The instructions for constructing and maintaining cells are built into this molecule. DNA can copy itself so that all the new cells produced by a plant or animal, contain copies of the same set of genetic instructions, or genetic code. Every single living organism processes DNA. In fact, DNA defin...