views:

177

answers:

1

Hello, I am using a formula field to concatonate 2 decimal values separated by a dash. However, I want the result to trim all unneccesary trailing zeros and decimal points for both values.

For example, I want values 10 and 8.5 to be "10 - 8.5". Now it shows "10.00 - 8.50".

The formula I am using is CSTR({field1}) + " - " + CSTR({field2}).

Any helpful hints?

A: 

I believe this is what you're looking for:

Convert Decimal Numbers to Text showing only the non-zero decimals

Sam T.