Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reading a double from a file
Message
 
 
À
01/05/1998 06:54:27
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00096119
Message ID:
00096244
Vues:
10
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform