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:
00476650
Vues:
29
Well... The data is coming from a text string like
12' 3 1/4"
and I have to convert that to a number so in my case
val("1/4") won't work...


>>Does anyone have code to convert a fraction to a decimal and from decimal to a fraction?
>>
>>
>>Thanks
>
>You're kidding about that first part, right? <s> I mean to convert any fraction, you just type that fraction, i.e. 1/2, 1/3, 4/5, etc. and it returns the decimal (based on the setting for SET DECIMALS TO.) After all, it's just an expression.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform