>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