Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Small number to string conversion
Message
From
17/05/2006 22:51:13
 
 
To
17/05/2006 22:36:49
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01123084
Message ID:
01123086
Views:
19
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform