Here's what's happening:

lnValue=700.231

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

700

?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

700.231000

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

700.23

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,

~Steve