Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reading a C Real Number with low level 2.6 for DOS
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00162949
Message ID:
00163037
Vues:
36
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform