Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Decimal precision is of a variable
Message
De
15/09/1998 10:49:48
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00136301
Message ID:
00136740
Vues:
27
Cool.
>Try following function
>
>FUNCTION LenDecimals
>LPARAMETER tnTestNum
>LOCAL lcNumber, lnPos, lnResult
>
>lcNumber = LTRIM( PADL( tnTestNum, 99))
>lnPos = AT( ".", lcNumber)
>IF lnPos = 0
> lnResult = 0
>ELSE
> lnResult = LEN( lcNumber) - lnPos
>ENDIF
>
>RETURN lnResult
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform