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!

trying to get decimals to disappear in a formula field 2

Status
Not open for further replies.

lsgtechuser

Programmer
Feb 3, 2003
59
US
I have a formula field that does some multiplying and adding with different fields that are integers and then adds text to the end. the numbers always appear with a .00 at the end. is there any way to stop this from happening? I tried truncate, but that didn't work.
 
Use totext({table.field,0,"")

The zero says the decimal places, the "" is the thousands separator, in this case nothing.

-k
 
Dear All,

Another toText option is Totext({@fieldorformula},'#')

The pound sign option means no decimals, no formatting!

The help is quite extensive and shows all kinds of formatting options. Do a search on Totext!

regards,

ro

Rosemary Lieberman
rosemary-at-microflo.com, Microflo provides expert consulting on MagicTSD and Crystal Reports.

You will get answers more quickly if you read this before posting: faq149-3762
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top