Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

convert data v 8.5

Status
Not open for further replies.

tomk01

ISP
Oct 18, 2004
69
US
Hello All,

I want to convert data inside of a string. so, I have a formula that converts the data to text and I cant get rid of the decimel.

I have a number field that looks like this:
.00010
.00297
.00497
I want to data to be in a string and look like this:
00010
00297
00497
Here is my formula that does not work:
Code:
stringvar rateAsString := totext({SCTax.overrideTaxRate}*100,00000,"")
My output is:
00000
00003
00005
 
Try:

totext({SCTax.overrideTaxRate}*100000,"00000")

-LB
 
Ooops, I meant the following, but LBs looks cleaner, use that:

replace(totext({SCTax.overrideTaxRate},00000,0,"")".","")

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top