Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Converting character value to 2 decimal places
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01382758
Message ID:
01382759
Vues:
47
Try
lcTest = "3900"
? ROUND(VAL(lcTest)/100,2)
>If I have a character string that equals "3900" how can I convert that to decimal type 39.00. Everytime I do VAL() function I'm getting 3900 and I need it to have 2 decimal places at the end, but nothing is working. thanks
>
>Nick
_______________________________________________________________
Testing displays the presence, not the absence of bugs.
If a software application has to be designed, it has to be designed correctly!
_______________________________________________________________
Vladimir Zografski
Systems Analyst
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform