Idea of C Programming – Number system conversions …!!!

0

Assalamualaikum, How are you all? After a long period I am here again. Today I am not going to give you any coding instruction. I am here just to start a new discussion about the programming life. If any code is given for the sake of this discussion then forgive me.

Okay guys, How was the day? I think some of you missed me and some not. But I missed you every time when I had to sit on my computer and could not establish the http:// into this site. What are you thinking? No, I had every facilities but the time was like rush. By the way after that busy time now I am here Alhamdulillah and started blogging again. May I hope a clap for me??

Thank you.

As I told u today I am not going to code here so, I tried something here to do without coding. Let’s play with the numbers 🙂

Number system conversions:
There are 4 number systems are very popular in our daily Engineering life. So, just have a look that how to convert the numbers from one to another. It is too much simple.

First we will know that how many numbers are used uniquely (not repeated) in any system:

Binary = 0,1
Decimal = 0,1,2,3,4,5,6,7,8,9
Octal = 0,1,2,3,4,5,6,7
Hexadecimal = 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F

Now, We are going to discuss about the conversion.

Binary to Decimal conversion:

let, there is a number: 10101 So, we know the base of Binary number is 2. So we will count the total number from right side and give them a serial as 0,1,2,3,4 then, We write in this format and calculate:

” 1×2^4 + 0x2^3 + 1×2^2 + 0x2^1 + 1×2^0″
it will be 21.

Like this in the Octal number base will be 8 and Hexadecimal base will be 16. The process will be same. So dear study friends try it and convert the whole worlds every numbers by this system and enjoy. Thank you , for the patience.

If any mistake happens please inform me cause I thought this way would be easy for everybody. Though any mistake I am sorry for that.

Share.

About Author

Rajumeazi

I am a free learner like to fly in the whole cyber world to gather knowledge. And I know I have only a little to share but I will try my best to give you what I have. :) Thank you :)

Leave A Reply

Powered by themekiller.com