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:
00476734
Vues:
18
>>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...
>>
>
>What kind of a number are you trying to get from this? The total number of inches? You'd need to parse the string to pull out the number of feet, inches, etc. but using VAL(1/4) still works for the fraction part of it.

Barbara,

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.
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