Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dropping decimals when printing a report
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01123493
Message ID:
01127554
Vues:
13
>In a report I need to print numbers with only the relevant decimals. 100.001 should print the same but 100.000 should only print as 100. Is there an easy way to do this or do I need to program this?

VFP9 only
RTRIM(RTRIM(TRANSFORM(1000.000, "999,999.999"), "0"), ".")
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform