Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determining the number of decimal places of a variable?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00759689
Message ID:
00759704
Vues:
22
>Thanks a bunch Fred! You are the man!
>
>That made my day.
>
>> You could do:
>
>> cN = ALLTRIM(PADR(n,20))
>> nDecimal = RAT(".",cN)

Whoops, not quite, Rich.

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