Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mathmeticians, Please help!
Message
De
27/03/2000 12:48:23
John Baird
Coatesville, Pennsylvanie, États-Unis
 
 
À
27/03/2000 12:13:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00350796
Message ID:
00350826
Vues:
22
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform