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

Explain pointers in c programming?

1066


What is difference between && and & in c?

1047


In C programming, how do you insert quote characters (‘ and “) into the output screen?

1482


Why & is used in c?

1120


How can you check to see whether a symbol is defined?

1051


What is the difference between constant pointer and constant variable?

1167


What is structure padding and packing in c?

1008


Explain how do you use a pointer to a function?

1056


What are logical errors and how does it differ from syntax errors?

1235


When should the const modifier be used?

1062


What is assert and when would I use it?

967


What does sizeof return c?

1015


What are the preprocessor categories?

1005


A global variable when referred to in another file is declared as this a) local variable b) external variable c) constant d) pointers

1121


void main(int n) { if(n==0) return; main(--n); printf("%d ",n); getch(); } how it work and what will be its output...............it any one know ans plz reply

2705