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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Filler Zeros in a Field

Status
Not open for further replies.

szaunbr

Technical User
Jul 5, 2006
50
US
I am working with CR9. I am working on a basic report that needs a numerical field (annual pay) displayed with filler zeros and an implied decimal.

Example:

12,649.23 should look like:

001264923

I tried writing a formula: totext({table.field},"000000000")

but this is returning 000012649

essentially losing the decimals.
 
Try:

totext({table.field},"0000000.00")

Or try:

replicatestring("0",9-len(totext({table.field})

-k
 
Ooops, I meant:

Or try:

replicatestring("0",9-len(totext({table.field}) & totext({table.field},2,"")

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top