Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting character value to 2 decimal places
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01382758
Message ID:
01382759
Views:
48
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform