Math.PresentValue
From RAD Studio VCL Reference
Contents |
Delphi Information
From Math.pas
function PresentValue(const Rate: Extended; NPeriods: Integer; const Payment: Extended; const FutureValue: Extended; PaymentTime: TPaymentTime): Extended;
Unit: Math
Type: function
Visibility: public
C++ Information
From Math.hpp
long double __fastcall PresentValue(long double Rate, int NPeriods, long double Payment, long double FutureValue, Math::TPaymentTime PaymentTime);
Unit: Math
Type: function
Description
Calculates the present value of an investment.
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.