NET_PRES_VALUE Function (PV-WAVE Advantage)
Evaluates the net present value of a stream of unequal periodic cash flows, which are subject to a given discount rate.
Usage
result = NET_PRES_VALUE (rate, values)
Input Parameters
rate—Interest rate per period.
values—One-dimensional array of equally-spaced cash flows.
Returned Value
result—The net present value of an investment. If no result can be computed, NaN is returned.
Input Keywords
Double—If present and nonzero, double precision is used.
Discussion
Function NET_PRES_VALUE computes the net present value of an investment. Net present value is the current value of a stream of payments, after discounting the payments using some interest rate.
It is found by solving the following with count = N_ELEMENTS (values):
where valuei = the ith cash flow.
Example
In this example, NET_PRES_VALUE computes the net present value of a $10 million prize paid in 20 years ($500,000 per year) with an annual interest rate of 6%.
rate = 0.06
value = FLTARR(20)
value(*) = 500000.
PRINT, NET_PRES_VALUE(rate, value)
; PV-WAVE prints: 5.73496e+06
Version 2017.0
Copyright © 2017, Rogue Wave Software, Inc. All Rights Reserved.