RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Math.PresentValue Function

Calculates the present value of an investment.

Pascal
function PresentValue(const Rate: Extended; NPeriods: Integer; const Payment: Extended; const FutureValue: Extended; PaymentTime: TPaymentTime): Extended;
C++
Extended PresentValue(const Extended Rate, int NPeriods, const Extended Payment, const Extended FutureValue, TPaymentTime PaymentTime);

Math

PresentValue calculates the present value of an investment where Payment is received for NPeriods and is discounted at the rate of Rate per period. FutureValue is the value the investment may reach at some point. PaymentTime indicates whether the cash flows occur at the beginning or end of the period. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!