Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing a dollar amount to a string?
Message
From
30/09/1999 14:09:54
Srinivasan Ashwath
Zeus Software Services
Hyderabad, India
 
 
To
30/09/1999 13:48:38
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00271203
Message ID:
00271225
Views:
20
I think this would be an appropriate command to solve the problem
Say a = 12.45
then len(str(a)) = 2
and IF WE HAVE ONLY 2 DECIMAL PLACES then len(str(a)) +3 = 5
then
store str(a,len(str(a))+3,2) to c will return 12.45
Try it out.
Previous
Reply
Map
View

Click here to load this message in the networking platform