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

Formating Help 1

Status
Not open for further replies.

fmrock

Programmer
Sep 5, 2006
510
0
0
US
I am trying to concate 2 fields and display to the user in one column.

Code:
{table.Oxygen} & " (" & {table.OxygenPct} * 100 & "%)"

However, no matter what i have tried, the percentage allways has 2 decimals.

We have tried, Round, Truncate, and Int.

The result should look like "2 (100%)"

Any help would be great.
 
Try this

{table.Oxygen} & " (" & totext({table.OxygenPct} * 100,0) & "%)"

HTH

-Steve


"if at first you don't succeed, sky diving is not for you"!!! :eek:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top