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

Convert amount to text 2

Status
Not open for further replies.

suburbanites

Programmer
Aug 16, 2007
75
US
Hi,

I am using Crystal XI SP1.

I am using the formula totext() to convert the amount 5,696.12 and it works for the 5,696 part. The text is missing the cents. I would like it to read as five thousand six hundred ninety six and 12/100.

Thanks in advance for your help.
 
Do you mean you are using towords()?

-LB
 
It should work just with:

towords({table.field})

...unless maybe you have set your file->options->fields to no decimals.

-LB
 
the fields are not set to no decimals. it is set to x,xxx.xx

Somehow the towords() is coming back with "five thousand and six hundred ninety six" only. i would like it to read as "five thousand six hundred ninety six and 12/100
 
Did you check both in the file->options->fields screen as well as the format field->number screen?

-LB
 
sorry LBass. it was set to no decimal. Thanks so much. Now it's working.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top