Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Convert number to string and back
Message
De
31/03/2008 12:47:16
 
 
À
31/03/2008 12:32:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Divers
Thread ID:
01306961
Message ID:
01307026
Vues:
10
>Numeric values don't care how many decimal places you have. Your value would be correct just by using VAL() on the string, but be cautious, it may depend on set decimals to "see" it correctly.

Yes, I was having issues with decimal values being lost or rounded up to 2 decimals. Seems that Gregory´s code is inmune to "SET" settings, except for the SET POINT TO "." caveat.

Thank you for your comments,

Carlos
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform