Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I read a hex value from an ascii file
Message
De
29/11/1996 07:45:54
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00013211
Message ID:
00013814
Vues:
34
>>This is good only if the hex value is an integer value. It doesn't work if it is a float.
>
>Do you mean that the hex value represents a floating point number stored in a standard format (for example, I think IEEE has one standard)? If so, this can be a real bear to translate because it will have a mantissa component, a sign component, and an exponent component, and the arrangement of the bits depends on whatever standard format is used to represent the number. (My guess is that this is not what you are dealing with).

Mark:

Thanks so much for your reply. They this thing was detailed for me, the value (Cougar Mountain Accounting) is stored in the following format:

Position 1 will either be a 4 or a c. 4 indicates a positive number and c indicates a negative.

Position 2 gives the number of decimal points.

The following the following five positions are the actual number.

So far, I am not having a great deal of luck on this end of the project. Any light you could shine on this would be greatly appreciated.

JD
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform