This documentation is compiled for the latest release of Mathos Core Library
Assembly: Mathos (in Mathos.dll) Version: 1.0.5.1 (1.0.5.1)
Net present value
Calculates the net present value for an investment with multiple case flows over equi-distant time intervals at a given rate of return
Namespace: Mathos.Finance
Assembly: Mathos (in Mathos.dll) Version: 1.0.5.1 (1.0.5.1)
Syntax
public static decimal NetPresentValue( decimal initialInvestment, IList<decimal> cashFlow, decimal rateOfReturn, bool round = true )
Parameters
- initialInvestment
- Type: SystemDecimal
Initial investment (ex 10000) - cashFlow
- Type: System.Collections.GenericIListDecimal
List of expected cash flows from investment (ex 200, 100, 300) - rateOfReturn
- Type: SystemDecimal
Expected rate of return (ex 5 for 5%) - round (Optional)
- Type: SystemBoolean
Determines whether the result is rounded to 2 decimal places
Return Value
Type: DecimalNet present value
See Also