Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Geting the decimal part of a number
Message
De
04/09/2004 11:53:14
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00939304
Message ID:
00939452
Vues:
18
This message has been marked as a message which has helped to the initial question of the thread.
>I'm trying to find a function in VFP8 that will return the decimal part of a number. eg 89.55 Should return 55

Try this.

val(GetWordNum( translate( 89.55 ),2,'.'))

but it will only work in VFP 7.0 or greater. For VFP 6.0, you need to use the WordNum() in Foxtools.fll instead of GetWordNum().
Greg Reichert
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform