Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Fancy trick to display 7,2 format without the decimal
Message
 
 
À
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:
00860332
Vues:
22
>>>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'))
>
Yes, INT is required if you pass value to PADL/PADR functions. W/o it decimals are included in result.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform