Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Integer to Hex conversion
Message
De
25/06/2000 00:16:37
 
 
À
24/06/2000 23:09:18
John Onysko
1 Edi Source, Inc.
Hudson, Ohio, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00384360
Message ID:
00384370
Vues:
23
>I am in dire need of a function that will convert an integer to hex. FoxPro's TRANSFORM is great, however, it stops at 10 characters -- I need 15.
>
>Thanks in advance.

Not totally sure what you want here. The maximum size of an integer in VFP is 2GB - a 10 digit number, as you found out.

Are you talking about a 15-digit numeric? You need to be careful, since VFP only supports 15 sig figs of precision. You may get subtle errors with any calculations on numerics that large.

Are you looking for a VFP algorithm, or just *some* method to make a conversion? In another thread Rick Borup mentions Hex Workshop at www.hexworkshop.com Also, the Windows Calculator in Scientific mode might be able to help you out.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform