Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Computing
Message
 
To
24/03/1999 20:53:40
Larry Santos
Local Data System
Philippines
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00201706
Message ID:
00201725
Views:
14
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform