Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Steve Bloodsworth
  Where is Steve Bloodsworth?
 Florida - United States
 Steve Bloodsworth
Subject: Decimal Conversion to String
Thread ID: 22109 Message ID: 22109 # Views: 7 # Ratings: 0
Version: Visual FoxPro 8 Category: General VFP Topics
Date: Wednesday, April 09, 2003 5:50:11 PM         

Here's what's happening:


?ALLTRIM(STR(lnValue)) && Rounds.. Yuk

?ALLTRIM(STR(lnValue,20,6)) && Too Many Zeros at the End, and 6 is a wild guess as to how long it will be.. Yuk

?TRANSFORM(lnValue) && Sticks to the SET DECIMAL value... Yuk

I need to get the string value of this number (including all of the decimal places). Do I need to make a function that starts at the end and counts backwards to remove the zeros, or is there a function that can handle this pure transformation, considering that lnValue can have any number of decimal places?

Thank you,