Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mathmeticians, Please help!
Message
From
27/03/2000 12:48:23
John Baird
Coatesville, Pennsylvania, United States
 
 
To
27/03/2000 12:13:25
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00350796
Message ID:
00350826
Views:
21
>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
Reply
Map
View

Click here to load this message in the networking platform