Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determining the number of decimal places of a variable?
Message
De
03/03/2003 12:55:12
 
 
À
03/03/2003 10:50:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00759689
Message ID:
00760431
Vues:
18
>Thanks, Rich. What does the following code show? I assume it still loses the accuracy.
>
>>
>>
>>x = 19.9999
>>? TRANSFORM(x)  && Returns 19.9999
>x = x + 0.0001
>>? TRANSFORM(x)  && Returns what?
>>
>>
>>

It sure does. It shows "20". If you add an additional "0" (0.00001), it shows correctly as "20.00001".
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform