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:
00782725
Vues:
15
This message has been marked as the solution to the initial question of the thread.
Hi Ali,

The result returned by VAL() function isn't affected by SET DECIMAL setting. So, Val("89.335") will always return 89.335. The display of numeric values is affected by SET DECIMAL command.

>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
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform