contents.gifprev1.gifnext1.gif

SCS() - Salvage of shortage

Calculates salvage of shortage.

Returns

Double value if successful. If an error occurs, this function returns a zero.

Arguments

Type
Field
Description
double
dCost
Cost per unit
double
dProb
Probability percentage of stock-out
double
dPrice
Price per unit
double
dShrtCst
Shortage cost per unit
16 bit DLL declarations

PowerBuilder Function declaration

function double SCS(double dCost, double dProb, double dPrice, double dShrtCst) library "IFL16.DLL"

Visual Basic Function declaration

Declare Function SCS lib "IFL16" (ByVal dCost As Double, ByVal dProb As Double, ByVal dPrice As Double, ByVal dShrtCst As Double) As Double

C/C++ Synopsis

#include "function.h"

double SCS(double dCost, double dProb, double dPrice, double dShrtCst)

32 bit DLL declarations

PowerBuilder Function declaration

function double SCS(double dCost, double dProb, double dPrice, double dShrtCst) library "IFL32.DLL"

Visual Basic Function declaration

Declare Function SCS lib "IFL32" (ByVal dCost As Double, ByVal dProb As Double, ByVal dPrice As Double, ByVal dShrtCst As Double) As Double

C/C++ Synopsis

#include "function.h"

double SCS(double dCost, double dProb, double dPrice, double dShrtCst)

Example:

dCost
=
6.00

dProb
=
0.15
(15%)
dPrice
=
11.00

dShrtCst
=
6.33

Result: $ 4.00