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

What is keyword with example?

1074


string reverse using recursion

2479


explain what is an endless loop?

1100


How do you do dynamic memory allocation in C applications?

1092


Can we change the value of constant variable in c?

1064


Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)

2300


write a program that reads lines(using getline), converts each line to an integer using atoi, and computes the average of all the numbers read. also compute the standard deviation.

2533


Write the Program to reverse a string using pointers.

1029


What is a rvalue?

1210


What are the types of unary operators?

1194


What are linked lists in c?

1132


write a program to create a sparse matrix using dynamic memory allocation.

4902


Explain output of printf("Hello World"-'A'+'B'); ?

1500


Differentiate between a for loop and a while loop? What are it uses?

1192


What is the use of ?: Operator?

1140