Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determining the number of decimal places of a variable?
Message
De
28/02/2003 18:03:06
 
 
À
28/02/2003 18:00:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00759689
Message ID:
00759764
Vues:
25
>Rich,
>
>Are you using VFP6? Transform works for VFP7...see Re: LEN() for numeric expresions Thread #716929 Message #716960 and surrounding discussion.

TRANSFORM() doesn't work with trailing 0's. Not in VFP8, anyways.


>
>
>>Fred,
>>
>>I really only needed the output string. The decimal position is just extra stuff that's good to have.
>>
>>Thanks Again!
>>
>>
>>> It should be:
>>
>>> nDecimal = LEN(cN)-RAT(".",cN)
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform