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!

Formatting a number in a text string

Status
Not open for further replies.

jsteff

Technical User
May 22, 2003
109
US
Crystal 8.5
I have the following formula in use:
--------
StringVar CopyString;
if {Orders.Copies}>0
then
CopyString := Cstr({Orders.Copies})+" Copy(ies) Transcript"
else
CopyString := " "
--------
The problem is that Orders.Copies is returning a value like 1.00, 3.00. I do not want decimal places when 'CopyString' is created.

How do I remove the decimal places?

Thanks.
 
Try:

StringVar CopyString;
if {Orders.Copies}>0
then
CopyString := Cstr({Orders.Copies},0,"")+" Copy(ies) Transcript"
else
CopyString := " "

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top