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:
00476743
Vues:
34
? evaluate("1/4") returns the desired 0.25

Thanks

>>VAL(1/4) will return a syntax error. VAL('1/4') only returns the numerator, not the result of the of 1 divided by 4.
>
>Good point. (Too early in the morning for me here. >g<) I meant EVAL() not VAL(), but didn't expect John to literally put the 1/4 in there because it really needs to be a variable that's set by his parsing routine.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform