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

Towords returns XX/100 rather than 00/100 Crystal 8.5 1

Status
Not open for further replies.

topjimmie

IS-IT--Management
Feb 4, 2002
28
US
I am using towords to display an amount. If the amount is a whole dollar, the decimal place displays XX/100.
I want it to display 00/100, but have so far not been able to figure this out. If there is a value other than 0 in the decimal place, everything works fine.

Example of current value: $10.00 = Ten And XX/100
Example of current value: $10.35 = Ten And 35/100

Example of desired value: $10.00 = Ten And 00/100
Example of desired value: $10.35 = Ten And 35/100

Thanks in advance for any help you can offer
 
Try passing your towords function as the first arguement in the replace function:

replace(towords(...),"xx/","00/")



~Brian
 
Thanks much for the quick and easy solution! Works great
jb
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top