Returns the present value for a schedule of cash flows.
Namespace:
Imsl.Finance
Assembly:
ImslCS (in ImslCS.dll) Version: 6.5.0.0
Syntax
C# |
---|
public static double Xnpv( double rate, double[] cashFlow, DateTime[] dates ) |
Visual Basic (Declaration) |
---|
Public Shared Function Xnpv ( _ rate As Double, _ cashFlow As Double(), _ dates As DateTime() _ ) As Double |
Visual C++ |
---|
public: static double Xnpv( double rate, array<double>^ cashFlow, array<DateTime>^ dates ) |
Parameters
- rate
- Type: System..::.Double
A double which specifies the interest rate.
- cashFlow
- Type: array<
System..::.Double
>[]()[]
A double array containing the cash flows.
- dates
- Type: array<
System..::.DateTime
>[]()[]
A DateTime array which contains a schedule of payment dates.
Return Value
A double which specifies the present value.
Remarks
It is not necessary that the cash flows be periodic. It is computed
using the following:


In the equation above, represents the
th payment date,
represents the first payment date, and
represents the
th cash flow.