Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Fancy trick to display 7,2 format without the decimal
Message
De
18/12/2003 09:50:03
 
 
À
18/12/2003 09:45:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00860324
Message ID:
00860327
Vues:
21
>This might seem quite easy but what would be the best approach to display 745.20 in a format of 99999 where the decimal is removed? For example, that should give 74520.


Michel,

Would this do ?
?strtran(str(745.20,6,2), set('point'))
or with leading zeroes
?strtran(transf(745.20, '@L ###.##'), set('point'))
Gregory
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform