Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Only a fraction...
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00547675
Message ID:
00547743
Vues:
17
>>what is the quickest and easiest way to get just the fraction of a number? ie in the number 21.22, how can i get just the '22' part without the '.'
>>
>>tia - john
>
>John,
>Try justext(transform(21.22)). It will give you a character expression but you can then use the Val() function if you need the number. This also has the added benefit that any number of decimal places will work.
>

John,
It's a nice trick. Just don't forget to put comments explaining what it's doing into your program.
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform