Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to convert a binary number to Hexa decimal number??
(Note:Do not convert it into binary and to Hexadecimal)

Answer Posted / vignesh1988i

let us take a binary number.. say :

0000000110101110 (16 bit number)
we already know it's the consersion to HEXA DECIMAL equivalent.... so split the numbers into 4 bits each... like,

0000 0001 1010 1110 (16 bit number)

and for converting directly there is a conversion called 8421 code...

8421 | 8421 | 8421 | 8421
0000 | 0001 | 1010 | 1110

now in the first pass it is zero (from left to right) , second it is 1 , in third it is 10 (A in hexa.) , in fourth it is 14 (E in hexa.)


thus the final representation for the above binary is : 1AE


thank u

Is This Answer Correct ?    12 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we initialize extern variable in c?

1183


Why do we use return in c?

1048


What are the advantages of using macro in c language?

1189


What is identifier in c?

1063


State the difference between realloc and free.

1145


Is it cc or c in a letter?

1077


What happens if a header file is included twice?

1076


Write a program in "C" to calculate the root of a quadratic equation ax^2+bx+c=0, where the value of a,b & c are known.

2283


Explain what are header files and explain what are its uses in c programming?

1201


how do you programme Carrier Sense Multiple Access

2010


What is the use of typedef in c?

1083


What is the equivalent code of the following statement in WHILE LOOP format?

1343


What are the benefits of organizational structure?

1064


How are pointers declared in c?

1113


How can I get random integers in a certain range?

1125