Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Numbers
Message
 
 
À
24/07/2007 09:08:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01243124
Message ID:
01243221
Vues:
23
>hi,
>thank you for reply,it works
>>
>>lnNumber = 1235.789
>>lcText = TRANSFORM(INT(lnNumber % 1 * 1000))
>>
>>>

Are you sure you always have 3 digits after the point? If you have 2 or more than 3, you would not get the decimal only part, e.g. test with

lnNumber = 344.8990034

and with lnNumber = 23.44

What exactly is the goal here?
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform