Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I read a hex value from an ascii file
Message
From
27/11/1996 19:09:57
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00013211
Message ID:
00013754
Views:
30
>>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).

The hex value is an inventory balance (in the original message). An inventory balance can be a float value.

All I wanted to say is that not every time you have a hex value it is an integer value. You must be sure what you have, because interpreting a float value as a integer can lead to complet wrong results.

Vlad
Previous
Reply
Map
View

Click here to load this message in the networking platform