Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Convert Fractions to Decimal
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00476506
Message ID:
00476635
Vues:
18
>Does anyone have code to convert a fraction to a decimal and from decimal to a fraction?
>
>
>Thanks

John,

Assuming you mean a string
lnresult = EVALUATE(lcfraction)
Changing lnresult back to a string takes more work. Basically, it would be involve using lnresult as the numerator and 10, 100, or whatever as the denominator and finding the common factors.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform