Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Binary to Hex Conversion
Message
De
16/06/1997 14:29:28
 
 
À
13/06/1997 11:49:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00036266
Message ID:
00036544
Vues:
45
> I need to convert a binary number to Hex, and vice-versa. It's been a long > time since I've done this. Does anyone have some code that will do this for > me? > > The binary number will look something like: 1100001111010001 (It will be as > much as 16 digits) I just wrote this program. It will covert a number from one base to another whatever the base is. Check it out. You might want to test it, I didn't had enough time but it seems to work so far. If you want to convert a binary number like 10101101 to hex, call the function like this : ?Base2Base('10101101',2,16) For a hex2bin conversion : ?Base2Base('FF',16,2) For all : If you think this might be usefull for somebody else I will upload it on UT.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform