Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calculate any decimal points
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00782716
Message ID:
00782726
Vues:
13
You could set decimal to MAX_desired before val(), and set deci to 2 after that.
Or just:
?val(...)+0.00000 to show up to 5 decimals no matter what decimals set to.

>Hi Everybody,
>
>I want to calculate the numeric value of a string with any decimal points. The problem with Val() is: I have to use Set Decimal To for a specific number of decimal points.
>
>For example.
>If Set Decimal to 2
>Val(“89.335”) yields 8.34
>and if Set Decimal to 2
>Val((“89.335”) yields 8.335
>
>Is there any solution?
>
>Thanks,
>Ali
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform