Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CSTR cutting off trailing zeros
Message
De
01/05/2006 07:43:19
 
 
À
28/04/2006 14:37:40
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
Crystal Reports
Catégorie:
Formules et fonctions
Divers
Thread ID:
01117622
Message ID:
01117978
Vues:
18
>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?

Hi, Mike

Select File->Options.
Select the "Fields" tab
Click on "Number"
Select the "Number" tab
Click on "Customize"
From the "Decimals" drop-down select "1"

That should do it.

Regards,
William Chadbourne
Senior Programmer/Analyst
State of Maine - DAFS App Team

Oracle - When you care enough to use the very best!!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform