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:51:44
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00860324
Message ID:
00860329
Vues:
17
>>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.
>
>
? INT(MyValue*100)
The INT seems to be quite important in here. With it, it provides a proper display when I use something like this:
MESSAGEBOX(PADL(INT(742.50*100),6,'0'))
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform