Returns the present value for a schedule of cash flows.
Namespace: Imsl.FinanceAssembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntaxpublic static double Xnpv(
double rate,
double[] cashFlow,
DateTime[] dates
)
Public Shared Function Xnpv (
rate As Double,
cashFlow As Double(),
dates As DateTime()
) As Double
public:
static double Xnpv(
double rate,
array<double>^ cashFlow,
array<DateTime>^ dates
)
static member Xnpv :
rate : float *
cashFlow : float[] *
dates : DateTime[] -> float
Parameters
- rate
- Type: SystemDouble
A double which specifies the interest rate.
- cashFlow
- Type: SystemDouble
A double array containing the cash flows.
- dates
- Type: SystemDateTime
A DateTime array which contains a schedule of payment dates.
Return Value
Type:
Double
A
double which specifies the present value.
Remarks
See Also