Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reading a double from a file
Message
 
 
To
01/05/1998 06:54:27
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00096119
Message ID:
00096244
Views:
9
Cetin,

Floating point numbers are not stored the same as integers, so no that code won't work.

>Maybe I'm missing something but wouldn't it be something like this :
nValue = 0
>for ix=1 to nBytes
>  nValue = nValue + asc(substr(cString,ix))*256^(ix-1)
>endfor
Cetin
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform