Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Computing
Message
 
À
24/03/1999 20:53:40
Larry Santos
Local Data System
Philippines
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00201706
Message ID:
00201725
Vues:
15
>Hi,
>
>
> Anybody can help me for my problem is computing..
> i use scan command for processing the allocated cost of each item and also landed cost of an item, but they gave me a not exactly on my computation..
>
>E.g:
> first record field1 = 464.60
> ntotDetail = 70009.41
> ntotExpense = 4592.98
>
> scan for
> nAll=(field1/ntotDetail)*ntotExpense
> endscan
>
> Instead of the result is 30.48 they gave 30.31..how come they compute that..?
>
>TIA

Try to use

scan for
nTemp = field1
* nTemp is a local variable
nAll=(nTemp/ntotDetail)*ntotExpense
endscan
Igor Gelin
Database Developer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform