Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Small number to string conversion
Message
De
17/05/2006 22:51:13
 
 
À
17/05/2006 22:36:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01123084
Message ID:
01123086
Vues:
18
See Transform()

>I am looking for the best way to convert a number to a string without loosing the decimals, if any. So, let assume I have a lnAmount which equals to 29.95. I need to convert that to a string. If I do STR(), I end up with 30. I need to end up with 29.95. I need something generic that would fit no matter the value of the number and no matter if decimals are present or not.

(On an infant's shirt): Already smarter than Bush
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform