Message
From
27/03/2000 12:48:23
John Baird
Coatesville, Pensilvânia, United States
 
 
To
27/03/2000 12:13:25
General information
Fórum:
Visual FoxPro
Category:
Programação, sintaxe e comandos
Miscellaneous
ID da thread:
00350796
ID da mensagem:
00350826
Views:
24
>I'm not familiar with (negative) cost margins, but generally speaking I would test for the relative cost/price and use an appropriate formula. E.g.:

>
>IF tnCost <= tnPrice
> lnMargin = ROUND((1-(tnCost/tnPrice)) * 100,1)
>ELSE
>* Put a suitable formula here
>* ( or tell them negative margins are not allowed? )
>ENDIF

I already figured this out by myself. What I need is the forumla or algorythm to do the negative calculations. I can't disallow the negative.
Previous
Next
Responder
Mapa
View