RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Math.NetPresentValue Function

Calculates the current value from an array of estimated cash flow values.

Pascal
function NetPresentValue(const Rate: Extended; const CashFlows: array of Double; PaymentTime: TPaymentTime): Extended;
C++
Extended NetPresentValue(const Extended Rate, const array of Double CashFlows, TPaymentTime PaymentTime);

NetPresentValue calculates the current value of an array of estimated cash flow values, discounted at the given interest rate of Rate.  

CashFlows is the array of estimated cash flow values. In C++, CashFlows_Size is the index of the last element in that array (one less than the number of elements). 

PaymentTime indicates whether the cash flows occur at the beginning or end of the period. 

NetPresentValue helps determine how much an investment is currently worth, based on expected earnings, although its accuracy depends on the accuracy of the cash flows in the array. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!