Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Decimal Places
Message
De
20/12/1999 10:47:29
 
 
À
20/12/1999 09:45:47
Amit Abhangrao
Charmi Software Exports
Mumbai, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00306105
Message ID:
00306153
Vues:
26
> I want to findout the decimal places of a variable. How can i find that. Eg. if variable is 130.9898 then it should return me 4.

In VFP 6, you can use the new capabilites of the TRANSFORM() function to help:
lcString = transform(lnNumber)
lnDecimals = len(lcString) - at('.', lcString)
Doug
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform