Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Integer to Hex conversion
Message
From
25/06/2000 00:16:37
 
 
To
24/06/2000 23:09:18
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00384360
Message ID:
00384370
Views:
27
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform