Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reading a double from a file
Message
From
01/05/1998 11:28:07
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00096119
Message ID:
00096290
Views:
15
>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
Oooops. You're right. Thanks for warning.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform