Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need a function to strip off zero-filled decimals
Message
De
18/08/2000 13:34:35
Tom Gahagan
Alliance Computer Solutions
Thomaston, Georgie, États-Unis
 
 
À
18/08/2000 12:44:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00406732
Message ID:
00406748
Vues:
34
Bill....


>>Example: I have a variable that contains the number 8.50000. I want to pass that through a VFP function and have it return 8.5.

Check out transform() in the help section.

>>While I'm at it, is there a function that will tell you the number of decimals in a numeric?

WAG.....try changing the number to a string, extract the portion after the decimal and then count the 0's with occurs()
Tom Gahagan
Alliance
Computer Solutions

"Music, like sex, is much too important to be left to professionals."
Robert Shaw
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform