[This is preliminary documentation and is subject to change.]
Returns a net present value calculated over series of cashflows
Namespace: NFX.FinancialAssembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
public static double NPV(
IEnumerable<double> cashFlows,
double discountRate
)
public static double NPV(
IEnumerable<double> cashFlows,
double discountRate
)
Public Shared Function NPV (
cashFlows As IEnumerable(Of Double),
discountRate As Double
) As Double
Public Shared Function NPV (
cashFlows As IEnumerable(Of Double),
discountRate As Double
) As Double
public:
static double NPV(
IEnumerable<double>^ cashFlows,
double discountRate
)
public:
static double NPV(
IEnumerable<double>^ cashFlows,
double discountRate
)
static member NPV :
cashFlows : IEnumerable<float> *
discountRate : float -> float
static member NPV :
cashFlows : IEnumerable<float> *
discountRate : float -> float
Parameters
- cashFlows
- Type:
System.Collections.Generic IEnumerable
Double
A series of net cashflows per period(supplied as a summ of inflows and outflows), usually the first cashflow is an outflow of initial project investment
- discountRate
- Type:
System Double
Interest rate used for net cashflow discount
Return Value
Type:
DoubleNet present value