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

Rounding a number and concat text in a formula 2

Status
Not open for further replies.

Craigmacs

Programmer
Nov 7, 2002
35
CA
if {Profitability1_ttx.PROFITSEGMENT} = 'Silver' and {Profitability1_ttx.GOLD} > 0 then
cstr(Truncate(Profitability1_ttx.GOLD})) + " Lose"

I want 40 Lose
I'm getting 40.00 Lose

I must have the formula this way for many reasons.
I need to make the formula above work. Can anyone tell me whats wrong? Why wont the truncate work here.
 
Just add a "0" to the cstr function, indicating you want no decimals:

cstr(Truncate(Profitability1_ttx.GOLD}),0) + " Lose"

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top