Delphi Programming

  1. Home
  2. Computing & Technology
  3. Delphi Programming
Glossary|Tips/Tricks|FREE App/VCL|Best'O'Net|Books|Link Back

Delphi Programming RTL Reference|By Category|Alphabetically|By Unit
 

FutureValue

unit
math
category
Business and finance routines

declaration
type TPaymentTime = (ptEndOfPeriod, ptStartOfPeriod);
function FutureValue(const Rate: Extended; NPeriods: Integer; const Payment, PresentValue: Extended; PaymentTime: TPaymentTime): Extended;

description
Returns the future value of an investment.

FutureValue returns the value of an investment of PresentValue where Payment is invested for NPeriods at the rate of Rate per period.

TPaymentTime indicates when interest is calculated. When ptStartOfPeriod is specified for PaymentTime, interest is calculated on the principle balance at the beginning of the payment period; when ptEndOfPeriod is specified for PaymentTime, interest is calculated at the end of the payment period.

example
var fv : extended;

fv:= FutureValue(0, 12, 2, 100,ptStartOfPeriod);
showmessage(FloatToStr(fv))
//will display -124

in real code

see also


 Free Delphi code snippet inside every Delphi Newsletter!
Subscribe to the Newsletter
Name
Email

 Got some code to share? Got a question? Need some help?

Explore Delphi Programming

About.com Special Features

Build Your Own Website

Step-by-step advice on how to do everything from choosing a Web host to promoting your content. More >

Connect Your Home Computers

Easy ways to connect two computers for networking purposes. More >

Delphi Programming

  1. Home
  2. Computing & Technology
  3. Delphi Programming

©2009 About.com, a part of The New York Times Company.

All rights reserved.