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:
01382761
Views:
43
>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


Thanks Vladimir, this thing drove me nuts all day. Thanks again.

Nick
Previous
Reply
Map
View

Click here to load this message in the networking platform