Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reading a C Real Number with low level 2.6 for DOS
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00162949
Message ID:
00163037
Views:
32
Sorry, it should have been:

x = asc(fread(mfile,1)) + (asc(fread(mfile,1)) * 256) + ;
>(asc(fread(mfile,1)) + (asc(fread(mfile,1)) * 256)) * 256 * 256

>I am currently importing data directly from some data files written by a C program. I have been able to import numbers so far by reading each byte with:
>x = asc(fread(mfile,1)) + (asc(fread(mfile,1)) * 256)
>
>etc. as needed. This has worked well for me until now. I am faced with having to read what are called Real Numbers or I believe Floating Point. I can't bend the old method to read these things. The ones I need to read are 4 bytes. The 2 byte numbers work the old way but I really have to read these new ones.
>
>HELP! Anyone got any ideas?
>
>John.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform